Home
last modified time | relevance | path

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

/kernel/
Dcapability.c81 static int cap_validate_magic(cap_user_header_t header, unsigned *tocopy) in cap_validate_magic() argument
91 *tocopy = _LINUX_CAPABILITY_U32S_1; in cap_validate_magic()
99 *tocopy = _LINUX_CAPABILITY_U32S_3; in cap_validate_magic()
153 unsigned tocopy; in SYSCALL_DEFINE2() local
156 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2()
171 for (i = 0; i < tocopy; i++) { in SYSCALL_DEFINE2()
196 if (copy_to_user(dataptr, kdata, tocopy in SYSCALL_DEFINE2()
226 unsigned i, tocopy, copybytes; in SYSCALL_DEFINE2() local
232 ret = cap_validate_magic(header, &tocopy); in SYSCALL_DEFINE2()
243 copybytes = tocopy * sizeof(struct __user_cap_data_struct); in SYSCALL_DEFINE2()
[all …]