Searched refs:pidmap (Results 1 – 3 of 3) sorted by relevance
56 struct pidmap *map, int off) in mk_pid()58 return (map - pid_ns->pidmap)*BITS_PER_PAGE + off; in mk_pid()74 .pidmap = {108 struct pidmap *map = upid->ns->pidmap + nr / BITS_PER_PAGE; in free_pidmap()157 struct pidmap *map; in alloc_pidmap()163 map = &pid_ns->pidmap[pid/BITS_PER_PAGE]; in alloc_pidmap()202 if (map < &pid_ns->pidmap[(pid_max-1)/BITS_PER_PAGE]) { in alloc_pidmap()206 map = &pid_ns->pidmap[0]; in alloc_pidmap()219 struct pidmap *map, *end; in next_pidmap()225 map = &pid_ns->pidmap[(last + 1)/BITS_PER_PAGE]; in next_pidmap()[all …]
100 ns->pidmap[0].page = kzalloc(PAGE_SIZE, GFP_KERNEL); in create_pid_namespace()101 if (!ns->pidmap[0].page) in create_pid_namespace()120 set_bit(0, ns->pidmap[0].page); in create_pid_namespace()121 atomic_set(&ns->pidmap[0].nr_free, BITS_PER_PAGE - 1); in create_pid_namespace()124 atomic_set(&ns->pidmap[i].nr_free, BITS_PER_PAGE); in create_pid_namespace()129 kfree(ns->pidmap[0].page); in create_pid_namespace()148 kfree(ns->pidmap[i].page); in destroy_pid_namespace()
13 struct pidmap { struct26 struct pidmap pidmap[PIDMAP_ENTRIES]; argument