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;

}

}
Zurzeit offline
Cub4r 12. März 2021 um 13:30 
-rep BOT NOOB
itanvolverIg 8. März 2021 um 2:58 
hey, i cant send you friend request, so can you add me please? its urgent
Broadwalker 22. Jan. 2021 um 16:58 
hey, i cant send you friend request, so can you add me please? its urgent
Migami 1. Jan. 2021 um 12:00 
hi, can you send me friend request? i cant add you, idk why
ЧИЧА 22. Jan. 2020 um 9:49 
♥♥♥♥♥♥♥♥♥♥♥♥ рак
BAJORU sik sik sik 30. Aug. 2019 um 12:03 
retarded player in world