Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 7 of 7) sorted by relevance

/kernel/
Dgroups.c92 int groups_search(const struct group_info *group_info, kgid_t grp) in groups_search() argument
103 if (gid_gt(grp, group_info->gid[mid])) in groups_search()
105 else if (gid_lt(grp, group_info->gid[mid])) in groups_search()
227 int in_group_p(kgid_t grp) in in_group_p() argument
232 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
233 retval = groups_search(cred->group_info, grp); in in_group_p()
239 int in_egroup_p(kgid_t grp) in in_egroup_p() argument
244 if (!gid_eq(grp, cred->egid)) in in_egroup_p()
245 retval = groups_search(cred->group_info, grp); in in_egroup_p()
Dparams.c550 struct attribute_group grp; member
641 mk->mp->grp.name = "parameters"; in add_sysfs_param()
643 mk->mp->grp.attrs = kzalloc(sizeof(mk->mp->grp.attrs[0]), in add_sysfs_param()
646 if (!mk->mp->grp.attrs) in add_sysfs_param()
660 new_attrs = krealloc(mk->mp->grp.attrs, in add_sysfs_param()
661 sizeof(mk->mp->grp.attrs[0]) * (mk->mp->num + 2), in add_sysfs_param()
665 mk->mp->grp.attrs = new_attrs; in add_sysfs_param()
683 mk->mp->grp.attrs[i] = &mk->mp->attrs[i].mattr.attr; in add_sysfs_param()
684 mk->mp->grp.attrs[mk->mp->num] = NULL; in add_sysfs_param()
692 kfree(mk->mp->grp.attrs); in free_module_param_attrs()
[all …]
Dsys.c1142 struct pid *grp; in do_getpgid() local
1147 grp = task_pgrp(current); in do_getpgid()
1153 grp = task_pgrp(p); in do_getpgid()
1154 if (!grp) in do_getpgid()
1161 retval = pid_vnr(grp); in do_getpgid()
/kernel/sched/
Dcore_sched.c134 struct pid *grp; in sched_core_share_pid() local
216 grp = task_pid_type(task, type); in sched_core_share_pid()
218 do_each_pid_thread(grp, type, p) { in sched_core_share_pid()
223 } while_each_pid_thread(grp, type, p); in sched_core_share_pid()
225 do_each_pid_thread(grp, type, p) { in sched_core_share_pid()
227 } while_each_pid_thread(grp, type, p); in sched_core_share_pid()
Dfair.c2677 static inline int get_numa_group(struct numa_group *grp) in get_numa_group() argument
2679 return refcount_inc_not_zero(&grp->refcount); in get_numa_group()
2682 static inline void put_numa_group(struct numa_group *grp) in put_numa_group() argument
2684 if (refcount_dec_and_test(&grp->refcount)) in put_numa_group()
2685 kfree_rcu(grp, rcu); in put_numa_group()
2691 struct numa_group *grp, *my_grp; in task_numa_group() local
2702 grp = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); in task_numa_group()
2703 if (!grp) in task_numa_group()
2706 refcount_set(&grp->refcount, 1); in task_numa_group()
2707 grp->active_nodes = 1; in task_numa_group()
[all …]
Dsched.h1457 static inline struct cfs_rq *group_cfs_rq(struct sched_entity *grp) in group_cfs_rq() argument
1459 return grp->my_q; in group_cfs_rq()
1483 static inline struct cfs_rq *group_cfs_rq(struct sched_entity *grp) in group_cfs_rq() argument
/kernel/module/
Dsysfs.c28 struct attribute_group grp; member
84 sizeof(sect_attrs->grp.bin_attrs[0])); in add_sect_attrs()
85 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.bin_attrs[0]); in add_sect_attrs()
91 sect_attrs->grp.name = "sections"; in add_sect_attrs()
92 sect_attrs->grp.bin_attrs = (void *)sect_attrs + size[0]; in add_sect_attrs()
96 gattr = &sect_attrs->grp.bin_attrs[0]; in add_sect_attrs()
116 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) in add_sect_attrs()
129 &mod->sect_attrs->grp); in remove_sect_attrs()