Searched refs:ioc_len (Results 1 – 7 of 7) sorted by relevance
/drivers/staging/lustre/lnet/libcfs/linux/ |
D | linux-module.c | 50 if (data->ioc_hdr.ioc_len > BIT(30)) { in libcfs_ioctl_is_invalid() 86 if ((__u32)libcfs_ioctl_packlen(data) != data->ioc_hdr.ioc_len) { in libcfs_ioctl_is_invalid() 137 if (hdr.ioc_len < sizeof(struct libcfs_ioctl_data)) { in libcfs_ioctl_getdata() 142 if (hdr.ioc_len > LIBCFS_IOC_DATA_MAX) { in libcfs_ioctl_getdata() 144 hdr.ioc_len, LIBCFS_IOC_DATA_MAX); in libcfs_ioctl_getdata() 148 LIBCFS_ALLOC(*hdr_pp, hdr.ioc_len); in libcfs_ioctl_getdata() 152 if (copy_from_user(*hdr_pp, uhdr, hdr.ioc_len)) { in libcfs_ioctl_getdata() 153 LIBCFS_FREE(*hdr_pp, hdr.ioc_len); in libcfs_ioctl_getdata()
|
/drivers/staging/lustre/lustre/include/lustre/ |
D | lustre_ioctl.h | 71 __u32 ioc_len; member 119 __u32 ioc_len; member 137 if (data->ioc_len > (1 << 30)) { in obd_ioctl_is_invalid() 202 if (obd_ioctl_packlen(data) > data->ioc_len) { in obd_ioctl_is_invalid() 204 obd_ioctl_packlen(data), data->ioc_len); in obd_ioctl_is_invalid() 229 data->ioc_len = obd_ioctl_packlen(data); in obd_ioctl_pack() 232 if (*pbuf && data->ioc_len > max_len) { in obd_ioctl_pack() 234 *pbuf, data->ioc_len, max_len); in obd_ioctl_pack() 239 *pbuf = malloc(data->ioc_len); in obd_ioctl_pack() 262 data->ioc_len, max_len); in obd_ioctl_pack()
|
/drivers/staging/lustre/lustre/obdclass/linux/ |
D | linux-module.c | 88 if (hdr.ioc_len > OBD_MAX_IOCTL_BUFFER) { in obd_ioctl_getdata() 90 hdr.ioc_len, OBD_MAX_IOCTL_BUFFER); in obd_ioctl_getdata() 94 if (hdr.ioc_len < sizeof(struct obd_ioctl_data)) { in obd_ioctl_getdata() 95 CERROR("User buffer too small for ioctl (%d)\n", hdr.ioc_len); in obd_ioctl_getdata() 104 *buf = libcfs_kvzalloc(hdr.ioc_len, GFP_NOFS); in obd_ioctl_getdata() 107 hdr.ioc_len); in obd_ioctl_getdata() 110 *len = hdr.ioc_len; in obd_ioctl_getdata() 113 if (copy_from_user(*buf, arg, hdr.ioc_len)) { in obd_ioctl_getdata() 117 if (hdr.ioc_len != data->ioc_len) { in obd_ioctl_getdata()
|
/drivers/staging/lustre/lnet/lnet/ |
D | module.c | 99 if (conf->cfg_hdr.ioc_len < sizeof(*conf)) in lnet_dyn_configure() 121 if (conf->cfg_hdr.ioc_len < sizeof(*conf)) in lnet_dyn_unconfigure() 146 if (data->ioc_hdr.ioc_len < sizeof(*data)) in lnet_ioctl()
|
D | api-ni.c | 1274 if (conf && conf->cfg_hdr.ioc_len > sizeof(*conf)) in lnet_startup_lndni() 1707 if (config->cfg_hdr.ioc_len > min_size) in lnet_fill_ni_info() 1708 tunable_size = config->cfg_hdr.ioc_len - min_size; in lnet_fill_ni_info() 1721 config->cfg_hdr.ioc_len -= min_size; in lnet_fill_ni_info() 1907 if (config->cfg_hdr.ioc_len < sizeof(*config)) in LNetCtl() 1927 if (config->cfg_hdr.ioc_len < sizeof(*config)) in LNetCtl() 1938 if (config->cfg_hdr.ioc_len < sizeof(*config)) in LNetCtl() 1953 if (config->cfg_hdr.ioc_len < total) in LNetCtl() 1962 if (lnet_stats->st_hdr.ioc_len < sizeof(*lnet_stats)) in LNetCtl() 1972 if (config->cfg_hdr.ioc_len < sizeof(*config)) in LNetCtl() [all …]
|
/drivers/staging/lustre/include/linux/libcfs/ |
D | libcfs_ioctl.h | 47 __u32 ioc_len; member
|
/drivers/staging/lustre/lnet/libcfs/ |
D | module.c | 150 if (copy_to_user(uparam, hdr, hdr->ioc_len)) in libcfs_ioctl() 159 LIBCFS_FREE(hdr, hdr->ioc_len); in libcfs_ioctl()
|