[EMAIL PROTECTED] wrote:
> 1/6: ckrm_numtasks_init
>
> Hooks up with CKRM core by defining the basic alloc/free functions and
> registering the controller with the core.
> --
<SNIP>
> +
> +static struct ckrm_shares *numtasks_alloc_shares_struct(
> + struct ckrm_class *class)
> +{
> + struct ckrm_numtasks *res;
> +
> + res = kzalloc(sizeof(struct ckrm_numtasks), GFP_ATOMIC);
Why does it need to allocate a memory in GFP_ATOMIC?
Are there any reason why this callback cannot sleep?
> + if (!res)
> + return NULL;
> + res->class = class;
> + numtasks_res_init_one(res);
> + return &res->shares;
> +}
Thanks,
MAEDA Naoaki
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech