You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
xuzhao9
changed the title
How do you allocate OSX kernel memory atomically?
How to allocate OSX kernel memory atomically?
Aug 6, 2019
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.
The text was updated successfully, but these errors were encountered: