Home
last modified time | relevance | path

Searched refs:kreq (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/
H A Dnstree.c425 struct ns_id_req *kreq) in copy_ns_id_req() argument
439 memset(kreq, 0, sizeof(*kreq)); in copy_ns_id_req()
440 ret = copy_struct_from_user(kreq, sizeof(*kreq), req, usize); in copy_ns_id_req()
443 if (kreq->spare != 0) in copy_ns_id_req()
445 if (kreq->ns_type & ~NS_ALL) in copy_ns_id_req()
450 static inline int prepare_klistns(struct klistns *kls, struct ns_id_req *kreq, in prepare_klistns() argument
453 kls->last_ns_id = kreq->ns_id; in prepare_klistns()
454 kls->user_ns_id = kreq->user_ns_id; in prepare_klistns()
456 kls->ns_type = kreq->ns_type; in prepare_klistns()
768 struct ns_id_req kreq; in SYSCALL_DEFINE4() local
[all …]
/linux/fs/
H A Dnamespace.c5824 static int prepare_kstatmount(struct kstatmount *ks, struct mnt_id_req *kreq, in prepare_kstatmount() argument
5832 ks->mask = kreq->param; in prepare_kstatmount()
5851 struct mnt_id_req *kreq, unsigned int flags) in copy_mnt_id_req() argument
5865 memset(kreq, 0, sizeof(*kreq)); in copy_mnt_id_req()
5866 ret = copy_struct_from_user(kreq, sizeof(*kreq), req, usize); in copy_mnt_id_req()
5871 if (kreq->mnt_id || kreq->mnt_ns_id) in copy_mnt_id_req()
5874 if (kreq->mnt_ns_fd != 0 && kreq->mnt_ns_id) in copy_mnt_id_req()
5877 if (kreq->mnt_id <= MNT_UNIQUE_ID_OFFSET) in copy_mnt_id_req()
5888 static struct mnt_namespace *grab_requested_mnt_ns(const struct mnt_id_req *kreq) in grab_requested_mnt_ns() argument
5892 if (kreq->mnt_ns_id) { in grab_requested_mnt_ns()
[all …]
/linux/fs/ocfs2/
H A Dioctl.c43 static inline void o2info_set_request_error(struct ocfs2_info_request *kreq, in o2info_set_request_error() argument
46 kreq->ir_flags |= OCFS2_INFO_FL_ERROR; in o2info_set_request_error()
47 (void)put_user(kreq->ir_flags, (__u32 __user *)&(req->ir_flags)); in o2info_set_request_error()