Home
last modified time | relevance | path

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

/drivers/staging/lustre/lustre/obdclass/linux/
Dlinux-module.c93 if (hdr.ioc_len > OBD_MAX_IOCTL_BUFFER) { in obd_ioctl_getdata()
95 hdr.ioc_len, OBD_MAX_IOCTL_BUFFER); in obd_ioctl_getdata()
99 if (hdr.ioc_len < sizeof(struct obd_ioctl_data)) { in obd_ioctl_getdata()
100 CERROR("User buffer too small for ioctl (%d)\n", hdr.ioc_len); in obd_ioctl_getdata()
108 *buf = libcfs_kvzalloc(hdr.ioc_len, GFP_NOFS); in obd_ioctl_getdata()
111 hdr.ioc_len); in obd_ioctl_getdata()
114 *len = hdr.ioc_len; in obd_ioctl_getdata()
117 if (copy_from_user(*buf, (void *)arg, hdr.ioc_len)) { in obd_ioctl_getdata()
121 if (hdr.ioc_len != data->ioc_len) { in obd_ioctl_getdata()
/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-module.c60 if (hdr->ioc_len >= end - buf) { in libcfs_ioctl_getdata()
65 if (hdr->ioc_len < sizeof(struct libcfs_ioctl_data)) { in libcfs_ioctl_getdata()
70 orig_len = hdr->ioc_len; in libcfs_ioctl_getdata()
71 if (copy_from_user(buf, arg, hdr->ioc_len)) in libcfs_ioctl_getdata()
73 if (orig_len != data->ioc_len) in libcfs_ioctl_getdata()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_ioctl.h47 __u32 ioc_len; member
74 __u32 ioc_len; member
88 data.ioc_len = sizeof(data); \
154 if (data->ioc_len > (1<<30)) { in libcfs_ioctl_is_invalid()
190 if ((__u32)libcfs_ioctl_packlen(data) != data->ioc_len) { in libcfs_ioctl_is_invalid()
/drivers/staging/lustre/lustre/include/
Dlustre_lib.h126 __u32 ioc_len; member
174 __u32 ioc_len; member
191 if (data->ioc_len > OBD_MAX_IOCTL_BUFFER) { in obd_ioctl_is_invalid()
244 if (obd_ioctl_packlen(data) > data->ioc_len) { in obd_ioctl_is_invalid()
246 obd_ioctl_packlen(data), data->ioc_len); in obd_ioctl_is_invalid()