Lines Matching defs:kgid
467 * make_kgid - Map a user-namespace gid pair into a kgid.
471 * Maps a user-namespace gid pair into a kernel internal kgid,
472 * and returns that kgid.
487 * from_kgid - Create a gid from a kgid user-namespace pair.
489 * @kgid: The kernel internal gid to start with.
491 * Map @kgid into the user-namespace specified by @targ and
496 * If @kgid has no mapping in @targ (gid_t)-1 is returned.
498 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid)
501 return map_id_up(&targ->gid_map, __kgid_val(kgid));
506 * from_kgid_munged - Create a gid from a kgid user-namespace pair.
508 * @kgid: The kernel internal gid to start with.
510 * Map @kgid into the user-namespace specified by @targ and
520 * If @kgid has no mapping in @targ overflowgid is returned.
522 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid)
525 gid = from_kgid(targ, kgid);