Home
last modified time | relevance | path

Searched refs:gid (Results 1 – 25 of 55) 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 …]
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[0]; member
121 kgid_t gid; /* real GID of the task */ member
380 #define current_gid() (current_cred_xxx(gid))
406 *(_gid) = __cred->gid; \
Dkernfs.h355 kuid_t uid, kgid_t gid,
361 kuid_t uid, kgid_t gid,
452 umode_t mode, kuid_t uid, kgid_t gid, in kernfs_create_dir_ns() argument
458 umode_t mode, kuid_t uid, kgid_t gid, in __kernfs_create_file() argument
552 umode_t mode, kuid_t uid, kgid_t gid, in kernfs_create_file_ns() argument
561 return __kernfs_create_file(parent, name, mode, uid, gid, in kernfs_create_file_ns()
Dstat.h43 kgid_t gid; member
Dkey.h188 kgid_t gid; member
259 kuid_t uid, kgid_t gid,
386 extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid,
Dkobject.h125 kuid_t *uid, kgid_t *gid);
152 void (*get_ownership)(struct kobject *kobj, kuid_t *uid, kgid_t *gid);
Daudit.h65 kgid_t gid; member
363 extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode);
392 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) in audit_ipc_set_perm() argument
395 __audit_ipc_set_perm(qbytes, uid, gid, mode); in audit_ipc_set_perm()
579 gid_t gid, umode_t mode) in audit_ipc_set_perm() argument
/include/rdma/
Dib_addr.h125 union ib_gid *gid) in ib_addr_get_mgid() argument
127 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid()
140 static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) in rdma_ip2gid() argument
146 (struct in6_addr *)gid); in rdma_ip2gid()
149 *(struct in6_addr *)&gid->raw = in rdma_ip2gid()
159 static inline void rdma_gid2ip(struct sockaddr *out, const union ib_gid *gid) in rdma_gid2ip() argument
161 if (ipv6_addr_v4mapped((struct in6_addr *)gid)) { in rdma_gid2ip()
165 memcpy(&out_in->sin_addr.s_addr, gid->raw + 12, 4); in rdma_gid2ip()
170 memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16); in rdma_gid2ip()
179 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.h41 union ib_gid *gid);
43 const union ib_gid *gid,
47 const union ib_gid *gid,
52 struct ib_device *device, const union ib_gid *gid, u8 port_num,
53 bool (*filter)(const union ib_gid *gid, const struct ib_gid_attr *,
134 bool rdma_is_zero_gid(const union ib_gid *gid);
Dopa_addr.h75 static inline bool ib_is_opa_gid(const union ib_gid *gid) in ib_is_opa_gid() argument
77 return ((be64_to_cpu(gid->global.interface_id) >> 40) == in ib_is_opa_gid()
88 static inline u32 opa_get_lid_from_gid(const union ib_gid *gid) in opa_get_lid_from_gid() argument
90 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.h195 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
212 kuid_t *uid, kgid_t *gid) in net_ns_get_ownership() argument
215 *gid = GLOBAL_ROOT_GID; in net_ns_get_ownership()
Daf_unix.h36 kgid_t gid; member
/include/soc/nps/
Dcommon.h124 ({ struct global_id gid; gid.value = cpu; \
125 nps_cluster_logic_to_phys(gid.cluster); })
/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.h23 __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.h195 kgid_t gid, struct p9_qid *qid);
197 kgid_t gid, struct p9_qid *qid);
215 dev_t rdev, kgid_t gid, struct p9_qid *);
217 kgid_t gid, struct p9_qid *);
/include/uapi/linux/
Dipc.h14 __kernel_gid_t gid; member
Dcramfs_fs.h33 __u32 size:CRAMFS_SIZE_WIDTH, gid:CRAMFS_GID_WIDTH; member
Dsmc_diag.h90 __u8 gid[40]; /* local GID */ member

123