/kernel/linux/linux-5.10/net/bpf/ |
H A D | test_run.c | 86 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 90 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 97 if (kattr->test.data_size_out && in bpf_test_finish() 98 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 99 copy_size = kattr->test.data_size_out; in bpf_test_finish() 178 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() argument 181 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init() 182 u32 user_size = kattr->test.data_size_in; in bpf_test_init() 205 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 213 if (kattr in bpf_prog_test_run_tracing() 204 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument 264 bpf_prog_test_run_raw_tp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_raw_tp() argument 327 bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) bpf_ctx_init() argument 358 bpf_ctx_finish(const union bpf_attr *kattr, union bpf_attr __user *uattr, const void *data, u32 size) bpf_ctx_finish() argument 491 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_skb() argument 625 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_xdp() argument 688 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_flow_dissector() argument [all...] |
/kernel/linux/linux-6.6/net/bpf/ |
H A D | test_run.c | 435 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 440 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 447 if (kattr->test.data_size_out && in bpf_test_finish() 448 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 449 copy_size = kattr->test.data_size_out; in bpf_test_finish() 626 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in bpf_test_init() argument 629 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init() 652 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 660 if (kattr->test.flags || kattr in bpf_prog_test_run_tracing() 651 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument 716 bpf_prog_test_run_raw_tp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_raw_tp() argument 774 bpf_ctx_init(const union bpf_attr *kattr, u32 max_size) bpf_ctx_init() argument 805 bpf_ctx_finish(const union bpf_attr *kattr, union bpf_attr __user *uattr, const void *data, u32 size) bpf_ctx_finish() argument 944 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_skb() argument 1138 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_xdp() argument 1300 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_flow_dissector() argument 1369 bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_sk_lookup() argument 1469 bpf_prog_test_run_syscall(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_syscall() argument 1567 bpf_prog_test_run_nf(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_nf() argument [all...] |
H A D | bpf_dummy_struct_ops.c | 21 dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr) in dummy_ops_init_args() argument 28 size_in = kattr->test.ctx_size_in; in dummy_ops_init_args() 36 ctx_in = u64_to_user_ptr(kattr->test.ctx_in); in dummy_ops_init_args() 77 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_struct_ops_test_run() argument 94 args = dummy_ops_init_args(kattr, btf_type_vlen(func_proto)); in bpf_struct_ops_test_run()
|
/kernel/linux/linux-6.6/drivers/platform/x86/dell/dell-wmi-sysman/ |
H A D | sysman.c | 227 struct kobj_attribute *kattr; in wmi_sysman_attr_show() local 230 kattr = container_of(attr, struct kobj_attribute, attr); in wmi_sysman_attr_show() 231 if (kattr->show) in wmi_sysman_attr_show() 232 ret = kattr->show(kobj, kattr, buf); in wmi_sysman_attr_show() 239 struct kobj_attribute *kattr; in wmi_sysman_attr_store() local 242 kattr = container_of(attr, struct kobj_attribute, attr); in wmi_sysman_attr_store() 243 if (kattr->store) in wmi_sysman_attr_store() 244 ret = kattr->store(kobj, kattr, bu in wmi_sysman_attr_store() [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | namespace.c | 4276 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags() argument 4281 flags &= ~kattr->attr_clr; in recalc_flags() 4283 flags |= kattr->attr_set; in recalc_flags() 4288 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount() argument 4293 if (!kattr->mnt_idmap) in can_idmap_mount() 4300 if (!check_fsmapping(kattr->mnt_idmap, m->mnt_sb)) in can_idmap_mount() 4328 * @kattr: the new mount attributes 4329 * @mnt: the mount to which @kattr will be applied 4331 * Check whether thew new mount attributes in @kattr allow concurrent writers. 4335 static inline bool mnt_allow_writers(const struct mount_kattr *kattr, in mnt_allow_writers() argument 4343 mount_setattr_prepare(struct mount_kattr *kattr, struct mount *mnt) mount_setattr_prepare() argument 4392 do_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) do_idmap_mount() argument 4408 mount_setattr_commit(struct mount_kattr *kattr, struct mount *mnt) mount_setattr_commit() argument 4431 do_mount_setattr(struct path *path, struct mount_kattr *kattr) do_mount_setattr() argument 4505 build_mount_idmapped(const struct mount_attr *attr, size_t usize, struct mount_kattr *kattr, unsigned int flags) build_mount_idmapped() argument 4569 build_mount_kattr(const struct mount_attr *attr, size_t usize, struct mount_kattr *kattr, unsigned int flags) build_mount_kattr() argument 4636 finish_mount_kattr(struct mount_kattr *kattr) finish_mount_kattr() argument 4652 struct mount_kattr kattr; SYSCALL_DEFINE5() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
H A D | audio_manager_sysfs.c | 85 struct kobj_attribute *kattr) in manager_sysfs_init_attribute() 89 err = sysfs_create_file(kobj, &kattr->attr); in manager_sysfs_init_attribute() 92 kattr->attr.name, err); in manager_sysfs_init_attribute() 84 manager_sysfs_init_attribute(struct kobject *kobj, struct kobj_attribute *kattr) manager_sysfs_init_attribute() argument
|
/kernel/linux/linux-6.6/drivers/staging/greybus/ |
H A D | audio_manager_sysfs.c | 85 struct kobj_attribute *kattr) in manager_sysfs_init_attribute() 89 err = sysfs_create_file(kobj, &kattr->attr); in manager_sysfs_init_attribute() 92 kattr->attr.name, err); in manager_sysfs_init_attribute() 84 manager_sysfs_init_attribute(struct kobject *kobj, struct kobj_attribute *kattr) manager_sysfs_init_attribute() argument
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | filecheck.c | 112 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local 116 if (kattr->show) in ocfs2_filecheck_show() 117 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show() 127 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local 131 if (kattr->store) in ocfs2_filecheck_store() 132 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | filecheck.c | 111 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local 115 if (kattr->show) in ocfs2_filecheck_show() 116 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show() 126 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local 130 if (kattr->store) in ocfs2_filecheck_store() 131 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
|
/kernel/linux/linux-5.10/lib/ |
H A D | kobject.c | 847 struct kobj_attribute *kattr; in kobj_attr_show() local 850 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show() 851 if (kattr->show) in kobj_attr_show() 852 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show() 859 struct kobj_attribute *kattr; in kobj_attr_store() local 862 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store() 863 if (kattr->store) in kobj_attr_store() 864 ret = kattr->store(kobj, kattr, bu in kobj_attr_store() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | kobject.c | 823 struct kobj_attribute *kattr; in kobj_attr_show() local 826 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show() 827 if (kattr->show) in kobj_attr_show() 828 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show() 835 struct kobj_attribute *kattr; in kobj_attr_store() local 838 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store() 839 if (kattr->store) in kobj_attr_store() 840 ret = kattr->store(kobj, kattr, bu in kobj_attr_store() [all...] |
/kernel/linux/linux-5.10/fs/sysfs/ |
H A D | file.c | 687 struct attribute **kattr; in sysfs_change_owner() local 693 for (kattr = ktype->default_attrs; kattr && *kattr; kattr++) { in sysfs_change_owner() 694 error = sysfs_file_change_owner(kobj, (*kattr)->name, in sysfs_change_owner()
|
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-cp2112.c | 947 static ssize_t pstr_store(struct device *kdev, struct device_attribute *kattr, in pstr_store() argument 965 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store() 976 static ssize_t pstr_show(struct device *kdev, struct device_attribute *kattr, in pstr_show() argument 987 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show() 996 kattr->attr.name, report.length); in pstr_show() 1009 static ssize_t name##_store(struct device *kdev, struct device_attribute *kattr, \ 1012 return pstr_store(kdev, kattr, buf, count, _report); \ 1014 static ssize_t name##_show(struct device *kdev, struct device_attribute *kattr, char *buf) \ 1016 return pstr_show(kdev, kattr, buf, _report); \
|
H A D | wacom_sys.c | 1850 struct kobj_attribute *kattr, in wacom_show_remote_mode() 1864 struct kobj_attribute *kattr, char *buf) \ 1866 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \ 1849 wacom_show_remote_mode(struct kobject *kobj, struct kobj_attribute *kattr, char *buf, int index) wacom_show_remote_mode() argument
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | bpf.h | 926 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 1681 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, 2362 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 2364 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 2367 const union bpf_attr *kattr, 2370 const union bpf_attr *kattr, 2373 const union bpf_attr *kattr, 2376 const union bpf_attr *kattr, 2379 const union bpf_attr *kattr, 2621 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() 2620 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_xdp() argument 2627 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_skb() argument 2634 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument 2641 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_flow_dissector() argument 2648 bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_sk_lookup() argument 2892 bpf_prog_test_run_syscall(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_syscall() argument [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-cp2112.c | 953 struct device_attribute *kattr, const char *buf, in pstr_store() 958 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store() 973 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store() 985 struct device_attribute *kattr, char *buf) in pstr_show() 989 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show() 997 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show() 1006 kattr->attr.name, report.length); in pstr_show() 952 pstr_store(struct device *kdev, struct device_attribute *kattr, const char *buf, size_t count) pstr_store() argument 984 pstr_show(struct device *kdev, struct device_attribute *kattr, char *buf) pstr_show() argument
|
H A D | wacom_sys.c | 1858 struct kobj_attribute *kattr, in wacom_show_remote_mode() 1872 struct kobj_attribute *kattr, char *buf) \ 1874 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \ 1857 wacom_show_remote_mode(struct kobject *kobj, struct kobj_attribute *kattr, char *buf, int index) wacom_show_remote_mode() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | bpf.h | 497 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 1531 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, 1533 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, 1536 const union bpf_attr *kattr, 1539 const union bpf_attr *kattr, 1542 const union bpf_attr *kattr, 1743 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() 1750 const union bpf_attr *kattr, in bpf_prog_test_run_skb() 1757 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 1764 const union bpf_attr *kattr, in bpf_prog_test_run_flow_dissector() 1742 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_xdp() argument 1749 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_skb() argument 1756 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument 1763 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_flow_dissector() argument [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | file.c | 108 u8 *kattr; in ntfs_attr_extend_initialized() local 159 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_attr_extend_initialized() 160 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized() 1550 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local 1608 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write() 1611 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write() 1623 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write() 1625 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
|
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | file.c | 109 u8 *kattr; in ntfs_attr_extend_initialized() local 160 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_attr_extend_initialized() 161 memset(kattr + attr_len, 0, new_init_size - attr_len); in ntfs_attr_extend_initialized() 1543 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local 1601 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write() 1604 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write() 1616 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write() 1618 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
|
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | core.c | 6034 struct sched_attr *kattr, in sched_attr_copy_to_user() 6037 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user() 6055 kattr->size = min(usize, ksize); in sched_attr_copy_to_user() 6057 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user() 6073 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 6091 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 6093 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 6095 __getparam_dl(p, &kattr); in SYSCALL_DEFINE4() 6097 kattr in SYSCALL_DEFINE4() 6033 sched_attr_copy_to_user(struct sched_attr __user *uattr, struct sched_attr *kattr, unsigned int usize) sched_attr_copy_to_user() argument [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | core.c | 8395 struct sched_attr *kattr, in sched_attr_copy_to_user() 8398 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user() 8416 kattr->size = min(usize, ksize); in sched_attr_copy_to_user() 8418 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user() 8434 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 8452 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 8454 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 8455 get_params(p, &kattr); in SYSCALL_DEFINE4() 8456 kattr in SYSCALL_DEFINE4() 8394 sched_attr_copy_to_user(struct sched_attr __user *uattr, struct sched_attr *kattr, unsigned int usize) sched_attr_copy_to_user() argument [all...] |
/kernel/linux/linux-5.10/kernel/trace/ |
H A D | bpf_trace.c | 1785 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 1784 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument
|
/kernel/linux/linux-6.6/kernel/trace/ |
H A D | bpf_trace.c | 2027 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() 2026 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument
|