Searched refs:kreq (Results 1 – 3 of 3) sorted by relevance
| /linux/kernel/ |
| H A D | nstree.c | 425 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/xfs/ |
| H A D | xfs_handle.c | 854 struct xfs_getparents *kreq = &gpx.gph.gph_request; in xfs_ioc_getparents() local 862 if (copy_from_user(kreq, ureq, sizeof(*kreq))) in xfs_ioc_getparents() 869 if (copy_to_user(ureq, kreq, sizeof(*kreq))) in xfs_ioc_getparents() 884 struct xfs_getparents_by_handle *kreq = &gpx.gph; in xfs_ioc_getparents_by_handle() local 885 struct xfs_handle *handle = &kreq->gph_handle; in xfs_ioc_getparents_by_handle() 892 if (copy_from_user(kreq, ureq, sizeof(*kreq))) in xfs_ioc_getparents_by_handle() 916 if (copy_to_user(ureq, kreq, sizeof(*kreq))) in xfs_ioc_getparents_by_handle()
|
| /linux/fs/ |
| H A D | namespace.c | 5854 static int prepare_kstatmount(struct kstatmount *ks, struct mnt_id_req *kreq, in prepare_kstatmount() argument 5862 ks->mask = kreq->param; in prepare_kstatmount() 5881 struct mnt_id_req *kreq, unsigned int flags) in copy_mnt_id_req() argument 5895 memset(kreq, 0, sizeof(*kreq)); in copy_mnt_id_req() 5896 ret = copy_struct_from_user(kreq, sizeof(*kreq), req, usize); in copy_mnt_id_req() 5901 if (kreq->mnt_id || kreq->mnt_ns_id) in copy_mnt_id_req() 5904 if (kreq->mnt_ns_fd != 0 && kreq->mnt_ns_id) in copy_mnt_id_req() 5907 if (kreq->mnt_id <= MNT_UNIQUE_ID_OFFSET) in copy_mnt_id_req() 5918 static struct mnt_namespace *grab_requested_mnt_ns(const struct mnt_id_req *kreq) in grab_requested_mnt_ns() argument 5922 if (kreq->mnt_ns_id) { in grab_requested_mnt_ns() [all …]
|