IntelWifi icon indicating copy to clipboard operation
IntelWifi copied to clipboard

How to allocate OSX kernel memory atomically?

Open xuzhao9 opened this issue 6 years ago • 0 comments

Hello! I am also trying to port iwlwifi to OSX. I met a problem when trying to rewrite the Linux code. The Linux driver often allocates the memory atomically, e.g.: phy_db->calib_ch_group_papd = kcalloc(chg_id + 1, sizeof(struct iwl_phy_db_entry), GFP_ATOMIC);

However, IOMalloc in OSX IOKit doesn't provide a similar feature like GFP_ATOMIC. May I ask how do you solve thsi issue? Your code helps a lot with my porting. Thank you in advance.

xuzhao9 avatar Aug 06 '19 04:08 xuzhao9