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;

}

}
Currently Offline
Achievement Showcase
Cub4r 12 Mar, 2021 @ 1:30pm 
-rep BOT NOOB
itanvolverIg 8 Mar, 2021 @ 2:58am 
hey, i cant send you friend request, so can you add me please? its urgent
Broadwalker 22 Jan, 2021 @ 4:58pm 
hey, i cant send you friend request, so can you add me please? its urgent
Migami 1 Jan, 2021 @ 12:00pm 
hi, can you send me friend request? i cant add you, idk why
ЧИЧА 22 Jan, 2020 @ 9:49am 
♥♥♥♥♥♥♥♥♥♥♥♥ рак
BAJORU sik sik sik 30 Aug, 2019 @ 12:03pm 
retarded player in world