Home
last modified time | relevance | path

Searched refs:usersize (Results 1 – 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/mm/
Dslab_common.c172 if (s->usersize) in slab_unmergeable()
234 unsigned int usersize, void (*ctor)(void *), in create_cache() argument
240 if (WARN_ON(useroffset + usersize > object_size)) in create_cache()
241 useroffset = usersize = 0; in create_cache()
253 s->usersize = usersize; in create_cache()
303 unsigned int useroffset, unsigned int usersize, in kmem_cache_create_usercopy() argument
335 if (WARN_ON(!usersize && useroffset) || in kmem_cache_create_usercopy()
336 WARN_ON(size < usersize || size - usersize < useroffset)) in kmem_cache_create_usercopy()
337 usersize = useroffset = 0; in kmem_cache_create_usercopy()
339 if (!usersize) in kmem_cache_create_usercopy()
[all …]
Dslab.h26 unsigned int usersize; /* Usercopy region size */ member
99 unsigned int usersize);
102 unsigned int useroffset, unsigned int usersize);
/kernel/linux/linux-5.10/net/netfilter/
Dxt_nfacct.c66 .usersize = offsetof(struct xt_nfacct_match_info, nfacct),
77 .usersize = offsetof(struct xt_nfacct_match_info_v1, nfacct),
Dxt_bpf.c126 .usersize = offsetof(struct xt_bpf_info, filter),
137 .usersize = offsetof(struct xt_bpf_info_v1, filter),
Dxt_CT.c310 .usersize = offsetof(struct xt_ct_target_info, ct),
322 .usersize = offsetof(struct xt_ct_target_info, ct),
334 .usersize = offsetof(struct xt_ct_target_info, ct),
Dxt_cgroup.c185 .usersize = offsetof(struct xt_cgroup_info_v1, priv),
199 .usersize = offsetof(struct xt_cgroup_info_v2, priv),
Dxt_TEE.c153 .usersize = offsetof(struct xt_tee_tginfo, priv),
165 .usersize = offsetof(struct xt_tee_tginfo, priv),
Dx_tables.c293 int usersize, int size, int aligned_size) in xt_data_to_user() argument
295 usersize = usersize ? : size; in xt_data_to_user()
296 if (copy_to_user(dst, src, usersize)) in xt_data_to_user()
298 if (usersize != aligned_size && in xt_data_to_user()
299 clear_user(dst + usersize, aligned_size - usersize)) in xt_data_to_user()
308 K->u.kernel.TYPE->usersize, \
638 static bool error_tg_ok(unsigned int usersize, unsigned int kernsize, in error_tg_ok() argument
641 return usersize == kernsize && strnlen(msg, msglen) < msglen; in error_tg_ok()
760 K->u.kernel.TYPE->usersize, \
Dxt_quota.c77 .usersize = offsetof(struct xt_quota_info, master),
Dxt_statistic.c84 .usersize = offsetof(struct xt_statistic_info, master),
Dxt_string.c78 .usersize = offsetof(struct xt_string_info, config),
Dxt_hashlimit.c987 .usersize = offsetof(struct xt_hashlimit_mtinfo1, hinfo),
998 .usersize = offsetof(struct xt_hashlimit_mtinfo2, hinfo),
1009 .usersize = offsetof(struct xt_hashlimit_mtinfo3, hinfo),
1021 .usersize = offsetof(struct xt_hashlimit_mtinfo1, hinfo),
1032 .usersize = offsetof(struct xt_hashlimit_mtinfo2, hinfo),
1043 .usersize = offsetof(struct xt_hashlimit_mtinfo3, hinfo),
Dxt_connlimit.c116 .usersize = offsetof(struct xt_connlimit_info, data),
Dxt_SECMARK.c175 .usersize = offsetof(struct xt_secmark_target_info_v1, secid),
Dxt_LED.c185 .usersize = offsetof(struct xt_led_info, internal_data),
Dxt_rateest.c133 .usersize = offsetof(struct xt_rateest_match_info, est1),
Dxt_limit.c194 .usersize = offsetof(struct xt_rateinfo, prev),
Dxt_IDLETIMER.c465 .usersize = offsetof(struct idletimer_tg_info, timer),
476 .usersize = offsetof(struct idletimer_tg_info_v1, timer),
Dxt_RATEEST.c189 .usersize = offsetof(struct xt_rateest_target_info, est),
/kernel/linux/linux-5.10/include/linux/netfilter/
Dx_tables.h171 unsigned int usersize; member
212 unsigned int usersize; member
302 int usersize, int size, int aligned_size);
/kernel/linux/linux-5.10/net/ipv6/netfilter/
Dip6t_NPT.c151 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment),
163 .usersize = offsetof(struct ip6t_npt_tginfo, adjustment),
/kernel/linux/linux-5.10/include/linux/
Dslab_def.h84 unsigned int usersize; /* Usercopy region size */ member
Dslub_def.h132 unsigned int usersize; /* Usercopy region size */ member
/kernel/linux/linux-5.10/net/bridge/netfilter/
Debt_limit.c109 .usersize = offsetof(struct ebt_limit_info, prev),
Debtables.c1324 int usersize, int datasize, u8 revision) in ebt_obj_to_user() argument
1335 xt_data_to_user(um + entrysize, data, usersize, datasize, in ebt_obj_to_user()
1347 m->u.match->usersize, m->match_size, in ebt_match_to_user()
1356 w->u.watcher->usersize, w->watcher_size, in ebt_watcher_to_user()
1388 t->u.target->usersize, t->target_size, in ebt_entry_to_user()
1542 if (xt_data_to_user(cm->data, m->data, match->usersize, msize, in compat_match_to_user()
1574 if (xt_data_to_user(cm->data, t->data, target->usersize, tsize, in compat_target_to_user()

12