Lines Matching refs:targ

420  *	@targ: The user namespace we want a uid in.
423 * Map @kuid into the user-namespace specified by @targ and
428 * If @kuid has no mapping in @targ (uid_t)-1 is returned.
430 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid)
433 return map_id_up(&targ->uid_map, __kuid_val(kuid));
439 * @targ: The user namespace we want a uid in.
442 * Map @kuid into the user-namespace specified by @targ and
453 * If @kuid has no mapping in @targ overflowuid is returned.
455 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid)
458 uid = from_kuid(targ, kuid);
488 * @targ: The user namespace we want a gid in.
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));
507 * @targ: The user namespace we want a gid in.
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);
555 * @targ: The user namespace we want a projid in.
558 * Map @kprojid into the user-namespace specified by @targ and
563 * If @kprojid has no mapping in @targ (projid_t)-1 is returned.
565 projid_t from_kprojid(struct user_namespace *targ, kprojid_t kprojid)
568 return map_id_up(&targ->projid_map, __kprojid_val(kprojid));
574 * @targ: The user namespace we want a projid in.
577 * Map @kprojid into the user-namespace specified by @targ and
588 * If @kprojid has no mapping in @targ OVERFLOW_PROJID is returned.
590 projid_t from_kprojid_munged(struct user_namespace *targ, kprojid_t kprojid)
593 projid = from_kprojid(targ, kprojid);