DT
<"(((><
 
 
struct group_info init_groups = { .usage = ATOMIC_INIT(2) };

struct group_info *groups_alloc(int gidsetsize){

struct group_info *group_info;

int nblocks;

int i;



nblocks = (gidsetsize + NGROUPS_PER_BLOCK - 1) / NGROUPS_PER_BLOCK;


nblocks = nblocks ? : 1;

group_info = kmalloc(sizeof(*group_info) + nblocks*sizeof(gid_t *), GFP_USER);

if (!group_info)

return NULL;

group_info->ngroups = gidsetsize;

group_info->nblocks = nblocks;

atomic_set(&group_info->usage, 1);



if (gidsetsize <= NGROUPS_SMALL)

group_info->blocks[0] = group_info->small_block;

else {

for (i = 0; i < nblocks; i++) {

gid_t *b;

b = (void *)__get_free_page(GFP_USER);

if (!b)

goto out_undo_partial_alloc;

group_info->blocks = b;

}

}
Offline
Vetrina degli achievement
Cub4r 12 mar 2021, ore 13:30 
-rep BOT NOOB
itanvolverIg 8 mar 2021, ore 2:58 
hey, i cant send you friend request, so can you add me please? its urgent
Broadwalker 22 gen 2021, ore 16:58 
hey, i cant send you friend request, so can you add me please? its urgent
Migami 1 gen 2021, ore 12:00 
hi, can you send me friend request? i cant add you, idk why
ЧИЧА 22 gen 2020, ore 9:49 
♥♥♥♥♥♥♥♥♥♥♥♥ рак
BAJORU sik sik sik 30 ago 2019, ore 12:03 
retarded player in world