Home
last modified time | relevance | path

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

/linux-2.6.39/ipc/
Dcompat_mq.c26 const struct compat_mq_attr __user *uattr) in get_compat_mq_attr() argument
28 if (!access_ok(VERIFY_READ, uattr, sizeof *uattr)) in get_compat_mq_attr()
31 return __get_user(attr->mq_flags, &uattr->mq_flags) in get_compat_mq_attr()
32 | __get_user(attr->mq_maxmsg, &uattr->mq_maxmsg) in get_compat_mq_attr()
33 | __get_user(attr->mq_msgsize, &uattr->mq_msgsize) in get_compat_mq_attr()
34 | __get_user(attr->mq_curmsgs, &uattr->mq_curmsgs); in get_compat_mq_attr()
38 struct compat_mq_attr __user *uattr) in put_compat_mq_attr() argument
40 if (clear_user(uattr, sizeof *uattr)) in put_compat_mq_attr()
43 return __put_user(attr->mq_flags, &uattr->mq_flags) in put_compat_mq_attr()
44 | __put_user(attr->mq_maxmsg, &uattr->mq_maxmsg) in put_compat_mq_attr()
[all …]
/linux-2.6.39/kernel/
Dperf_event.c6282 static int perf_copy_attr(struct perf_event_attr __user *uattr, in perf_copy_attr() argument
6288 if (!access_ok(VERIFY_WRITE, uattr, PERF_ATTR_SIZE_VER0)) in perf_copy_attr()
6296 ret = get_user(size, &uattr->size); in perf_copy_attr()
6320 addr = (void __user *)uattr + sizeof(*attr); in perf_copy_attr()
6321 end = (void __user *)uattr + size; in perf_copy_attr()
6333 ret = copy_from_user(attr, uattr, size); in perf_copy_attr()
6357 put_user(sizeof(*attr), &uattr->size); in perf_copy_attr()