May need chiari decompression surgery. Have a top ns for procedure if necessary. Have codeine allergy. How can pain b controlled post operatively?

Many ways. There are many pain medication that do not include codeine. As long as your doctors are aware of your allergies, they will prescribe the proper pain medication for you.
Other meds. There are other pain medications that can be used. That should not be a problem. Good luck.