Home
last modified time | relevance | path

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

/kernel/
Dgroups.c109 int groups_search(const struct group_info *group_info, kgid_t grp) in groups_search() argument
120 if (gid_gt(grp, group_info->gid[mid])) in groups_search()
122 else if (gid_lt(grp, group_info->gid[mid])) in groups_search()
231 int in_group_p(kgid_t grp) in in_group_p() argument
236 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
237 retval = groups_search(cred->group_info, grp); in in_group_p()
243 int in_egroup_p(kgid_t grp) in in_egroup_p() argument
248 if (!gid_eq(grp, cred->egid)) in in_egroup_p()
249 retval = groups_search(cred->group_info, grp); in in_egroup_p()
Dparams.c585 struct attribute_group grp; member
678 mk->mp->grp.name = "parameters"; in add_sysfs_param()
680 mk->mp->grp.attrs = kzalloc(sizeof(mk->mp->grp.attrs[0]), in add_sysfs_param()
683 if (!mk->mp->grp.attrs) in add_sysfs_param()
697 new_attrs = krealloc(mk->mp->grp.attrs, in add_sysfs_param()
698 sizeof(mk->mp->grp.attrs[0]) * (mk->mp->num + 2), in add_sysfs_param()
702 mk->mp->grp.attrs = new_attrs; in add_sysfs_param()
720 mk->mp->grp.attrs[i] = &mk->mp->attrs[i].mattr.attr; in add_sysfs_param()
721 mk->mp->grp.attrs[mk->mp->num] = NULL; in add_sysfs_param()
729 kfree(mk->mp->grp.attrs); in free_module_param_attrs()
[all …]
Dmodule.c1451 struct attribute_group grp; member
1486 sizeof(sect_attrs->grp.attrs[0])); in add_sect_attrs()
1487 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]); in add_sect_attrs()
1493 sect_attrs->grp.name = "sections"; in add_sect_attrs()
1494 sect_attrs->grp.attrs = (void *)sect_attrs + size[0]; in add_sect_attrs()
1498 gattr = &sect_attrs->grp.attrs[0]; in add_sect_attrs()
1518 if (sysfs_create_group(&mod->mkobj.kobj, &sect_attrs->grp)) in add_sect_attrs()
1531 &mod->sect_attrs->grp); in remove_sect_attrs()
Dsys.c995 struct pid *grp; in SYSCALL_DEFINE1() local
1000 grp = task_pgrp(current); in SYSCALL_DEFINE1()
1006 grp = task_pgrp(p); in SYSCALL_DEFINE1()
1007 if (!grp) in SYSCALL_DEFINE1()
1014 retval = pid_vnr(grp); in SYSCALL_DEFINE1()
/kernel/sched/
Dfair.c297 static inline struct cfs_rq *group_cfs_rq(struct sched_entity *grp) in group_cfs_rq() argument
299 return grp->my_q; in group_cfs_rq()
454 static inline struct cfs_rq *group_cfs_rq(struct sched_entity *grp) in group_cfs_rq() argument
2187 static inline int get_numa_group(struct numa_group *grp) in get_numa_group() argument
2189 return atomic_inc_not_zero(&grp->refcount); in get_numa_group()
2192 static inline void put_numa_group(struct numa_group *grp) in put_numa_group() argument
2194 if (atomic_dec_and_test(&grp->refcount)) in put_numa_group()
2195 kfree_rcu(grp, rcu); in put_numa_group()
2201 struct numa_group *grp, *my_grp; in task_numa_group() local
2211 grp = kzalloc(size, GFP_KERNEL | __GFP_NOWARN); in task_numa_group()
[all …]