Home
last modified time | relevance | path

Searched refs:copy_struct_from_user (Results 1 – 20 of 20) sorted by relevance

/linux/lib/
A Dusercopy_kunit.c132 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user()
145 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user()
155 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), -E2BIG, in usercopy_test_copy_struct_from_user()
167 KUNIT_EXPECT_EQ_MSG(test, copy_struct_from_user(kmem, ksize, umem, usize), 0, in usercopy_test_copy_struct_from_user()
/linux/drivers/platform/surface/
A Dsurface_aggregator_cdev.c266 ret = copy_struct_from_user(&rqst, sizeof(rqst), r, sizeof(*r)); in ssam_cdev_request()
378 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_notif_register()
393 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_notif_unregister()
411 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_event_enable()
439 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_event_disable()
/linux/include/linux/
A Dsockptr.h92 return copy_struct_from_user(dst, ksize, src.user, size); in copy_struct_from_sockptr()
A Duaccess.h382 copy_struct_from_user(void *dst, size_t ksize, const void __user *src, in copy_struct_from_user() function
A Diommu.h432 return copy_struct_from_user(dst_data, data_len, src_data->uptr, in __iommu_copy_struct_from_user()
/linux/security/landlock/
A Dsyscalls.c78 return copy_struct_from_user(dst, ksize, src, usize); in copy_min_struct_from_user()
/linux/io_uring/
A Dopenclose.c107 ret = copy_struct_from_user(&open->how, sizeof(open->how), how, len); in io_openat2_prep()
/linux/drivers/gpu/drm/imagination/
A Dpvr_drv.c1168 return copy_struct_from_user(out, obj_size, u64_to_user_ptr(usr_ptr), usr_stride); in pvr_get_uobj()
1213 ret = copy_struct_from_user(out_ptr, obj_size, in_ptr, in->stride); in pvr_get_uobj_array()
/linux/Documentation/dev-tools/
A Dcheckuapi.rst419 ``copy_struct_from_user()`` to safely copy the value::
427 ret = copy_struct_from_user(&my_cmd, arg, sizeof(struct foo), _IOC_SIZE(cmd));
430 ``copy_struct_from_user`` will zero the struct in the kernel and then copy
/linux/drivers/iommu/iommufd/
A Dmain.c420 ret = copy_struct_from_user(ucmd.cmd, op->size, ucmd.ubuffer, in iommufd_fops_ioctl()
/linux/drivers/platform/x86/amd/
A Dhsmp.c330 if (copy_struct_from_user(&msg, sizeof(msg), arguser, sizeof(struct hsmp_message))) in hsmp_ioctl()
/linux/kernel/trace/
A Dtrace_events_user.c2415 ret = copy_struct_from_user(kreg, sizeof(*kreg), ureg, size); in user_reg_get()
2577 ret = copy_struct_from_user(kreg, sizeof(*kreg), ureg, size); in user_unreg_get()
/linux/drivers/gpu/drm/panthor/
A Dpanthor_drv.c114 ret = copy_struct_from_user(out_ptr, obj_size, in_ptr, in->stride); in panthor_get_uobj_array()
/linux/kernel/sched/
A Dsyscalls.c921 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in sched_copy_attr()
/linux/fs/
A Dopen.c1463 err = copy_struct_from_user(&tmp, sizeof(tmp), how, usize); in SYSCALL_DEFINE4()
A Dnamespace.c4835 err = copy_struct_from_user(&attr, sizeof(attr), uattr, usize); in SYSCALL_DEFINE5()
5271 ret = copy_struct_from_user(kreq, sizeof(*kreq), req, usize); in copy_mnt_id_req()
/linux/kernel/
A Dseccomp.c1690 ret = copy_struct_from_user(&addfd, sizeof(addfd), uaddfd, size); in seccomp_notify_addfd()
A Dfork.c2954 err = copy_struct_from_user(&args, sizeof(args), uargs, usize); in copy_clone_args_from_user()
/linux/fs/proc/
A Dtask_mmu.c472 err = copy_struct_from_user(&karg, sizeof(karg), uarg, usize); in do_procmap_query()
/linux/kernel/events/
A Dcore.c12379 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in perf_copy_attr()

Completed in 89 milliseconds