*q ='\0';//strip '='fb[i].cache[j].name =kstrdup(p, GFP_KERNEL);//printk(" %d '%s'->", i, p);p = q +1;//valueif(NULL== (q =strchr(p,'\0'))) { RANV_PRINT("parsed failed - cannot find '\\0'\n");break; } fb[i].cache[j].value =kstrdup(p, GFP_KERNEL)...
函数名称:kstrdup - allocate space for and copy an existing string*@s: the string to duplicate*@gfp: the GFP mask used in the kmalloc() call when allocating memory* Return: newly allocated copy of @s or %NULL in case of error 函数原型:char *kstrdup(const char *s, gfp_t gfp) 返回类...