Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to allocate OSX kernel memory atomically? #19

Open
xuzhao9 opened this issue Aug 6, 2019 · 0 comments
Open

How to allocate OSX kernel memory atomically? #19

xuzhao9 opened this issue Aug 6, 2019 · 0 comments

Comments

@xuzhao9
Copy link

xuzhao9 commented 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.

@xuzhao9 xuzhao9 changed the title How do you allocate OSX kernel memory atomically? How to allocate OSX kernel memory atomically? Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant