Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 58) sorted by relevance

123

/include/linux/
Dhighuid.h48 #define high2lowgid(gid) ((gid) & ~0xFFFF ? (old_gid_t)overflowgid : (old_gid_t)(gid)) argument
54 #define low2highgid(gid) ((gid) == (old_gid_t)-1 ? (gid_t)-1 : (gid_t)(gid)) argument
58 #define __convert_gid(size, gid) \ argument
59 (size >= sizeof(gid) ? (gid) : high2lowgid(gid))
65 #define __convert_gid(size, gid) (gid) argument
71 #define SET_GID(var, gid) do { (var) = __convert_gid(sizeof(var), (gid)); } while (0) argument
93 #define fs_high2lowgid(gid) ((gid) & ~0xFFFF ? (gid16_t)fs_overflowgid : (gid16_t)(gid)) argument
Duidgid.h39 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() argument
41 return gid.val; in __kgid_val()
49 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() argument
116 static inline bool gid_valid(kgid_t gid) in gid_valid() argument
118 return __kgid_val(gid) != (gid_t) -1; in gid_valid()
124 extern kgid_t make_kgid(struct user_namespace *from, gid_t gid);
127 extern gid_t from_kgid(struct user_namespace *to, kgid_t gid);
129 extern gid_t from_kgid_munged(struct user_namespace *to, kgid_t gid);
136 static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid) in kgid_has_mapping() argument
138 return from_kgid(ns, gid) != (gid_t) -1; in kgid_has_mapping()
[all …]
Dmnt_idmapping.h35 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() argument
37 return gid.val; in __vfsgid_val()
45 static inline gid_t __vfsgid_val(vfsgid_t gid) in __vfsgid_val() argument
56 static inline bool vfsgid_valid(vfsgid_t gid) in vfsgid_valid() argument
58 return __vfsgid_val(gid) != (gid_t)-1; in vfsgid_valid()
243 gid_t gid; in make_vfsgid() local
248 gid = __kgid_val(kgid); in make_vfsgid()
250 gid = from_kgid(fs_userns, kgid); in make_vfsgid()
251 if (gid == (gid_t)-1) in make_vfsgid()
253 return VFSGIDT_INIT(make_kgid(mnt_userns, gid)); in make_vfsgid()
[all …]
Dipc.h18 kgid_t gid; member
Dquota.h71 kgid_t gid; member
108 kqid.gid = make_kgid(from, qid); in make_kqid()
135 kqid.gid = INVALID_GID; in make_kqid_invalid()
162 static inline struct kqid make_kqid_gid(kgid_t gid) in make_kqid_gid() argument
166 kqid.gid = gid; in make_kqid_gid()
Dcred.h28 kgid_t gid[]; member
120 kgid_t gid; /* real GID of the task */ member
382 #define current_gid() (current_cred_xxx(gid))
409 *(_gid) = __cred->gid; \
Dstat.h45 kgid_t gid; member
Dkobject.h123 kuid_t *uid, kgid_t *gid);
132 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);
Dkey.h214 kgid_t gid; member
285 kuid_t uid, kgid_t gid,
412 extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid,
Dkernfs.h432 kuid_t uid, kgid_t gid,
438 kuid_t uid, kgid_t gid,
530 umode_t mode, kuid_t uid, kgid_t gid, in kernfs_create_dir_ns() argument
536 umode_t mode, kuid_t uid, kgid_t gid, in __kernfs_create_file() argument
/include/rdma/
Dib_addr.h99 union ib_gid *gid) in ib_addr_get_mgid() argument
101 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid()
114 static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) in rdma_ip2gid() argument
120 (struct in6_addr *)gid); in rdma_ip2gid()
123 *(struct in6_addr *)&gid->raw = in rdma_ip2gid()
133 static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) in rdma_gid2ip() argument
135 if (ipv6_addr_v4mapped((struct in6_addr *)gid)) { in rdma_gid2ip()
139 memcpy(&out_in->sin_addr.s_addr, gid->raw + 12, 4); in rdma_gid2ip()
144 memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16); in rdma_gid2ip()
153 static inline void rdma_addr_get_sgid(struct rdma_dev_addr *dev_addr, union ib_gid *gid) in rdma_addr_get_sgid() argument
[all …]
Dib_cache.h14 union ib_gid *gid);
17 const union ib_gid *gid,
21 const union ib_gid *gid,
26 struct ib_device *device, const union ib_gid *gid, u32 port_num,
27 bool (*filter)(const union ib_gid *gid, const struct ib_gid_attr *,
108 bool rdma_is_zero_gid(const union ib_gid *gid);
Dopa_addr.h33 static inline bool ib_is_opa_gid(const union ib_gid *gid) in ib_is_opa_gid() argument
35 return ((be64_to_cpu(gid->global.interface_id) >> 40) == in ib_is_opa_gid()
46 static inline u32 opa_get_lid_from_gid(const union ib_gid *gid) in opa_get_lid_from_gid() argument
48 return be64_to_cpu(gid->global.interface_id) & 0xFFFFFFFF; in opa_get_lid_from_gid()
/include/net/
Dscm.h21 kgid_t gid; member
57 struct pid *pid, kuid_t uid, kgid_t gid) in scm_set_cred() argument
62 scm->creds.gid = gid; in scm_set_cred()
83 scm->creds.gid = INVALID_GID; in scm_send()
139 .gid = from_kgid_munged(current_ns, scm->creds.gid), in scm_recv()
Dnet_namespace.h230 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
248 kuid_t *uid, kgid_t *gid) in net_ns_get_ownership() argument
251 *gid = GLOBAL_ROOT_GID; in net_ns_get_ownership()
/include/trace/events/
Dib_umad.h47 __array(u8, gid, 16)
70 memcpy(__entry->gid, umad_hdr->gid, sizeof(umad_hdr->gid));
98 __entry->traffic_class, &__entry->gid,
Diommu.h25 __field(int, gid)
30 __entry->gid = group_id;
35 __entry->gid, __get_str(device)
/include/uapi/asm-generic/
Dipcbuf.h25 __kernel_gid32_t gid; member
/include/uapi/rdma/
Dib_user_mad.h88 __u8 gid[16]; member
132 __u8 gid[16]; member
/include/net/9p/
Dclient.h199 kgid_t gid, struct p9_qid *qid);
201 kgid_t gid, struct p9_qid *qid);
221 dev_t rdev, kgid_t gid, struct p9_qid *qid);
223 kgid_t gid, struct p9_qid *qid);
/include/uapi/linux/
Dipc.h14 __kernel_gid_t gid; member
Dvfio_zdev.h31 __u8 gid; /* PCI function group ID */ member
Dcramfs_fs.h33 __u32 size:CRAMFS_SIZE_WIDTH, gid:CRAMFS_GID_WIDTH; member
Dandroid_fuse.h42 uint32_t gid; member
Dsmc_diag.h90 __u8 gid[40]; /* local GID */ member

123