Skip to content

Instantly share code, notes, and snippets.

@mgalgs
Created May 10, 2013 21:16
Show Gist options
  • Save mgalgs/5557487 to your computer and use it in GitHub Desktop.
Save mgalgs/5557487 to your computer and use it in GitHub Desktop.
int __init_or_module do_one_initcall(initcall_t fn)
{
int count = preempt_count();
int ret;
/* ... */
ret = fn();
/* ... */
return ret;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment