Home
last modified time | relevance | path

Searched refs:kattr (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.15/net/bpf/
Dtest_run.c130 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument
134 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish()
141 if (kattr->test.data_size_out && in bpf_test_finish()
142 copy_size > kattr->test.data_size_out) { in bpf_test_finish()
143 copy_size = kattr->test.data_size_out; in bpf_test_finish()
249 static void *bpf_test_init(const union bpf_attr *kattr, u32 size, in bpf_test_init() argument
252 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in bpf_test_init()
253 u32 user_size = kattr->test.data_size_in; in bpf_test_init()
275 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
283 if (kattr->test.flags || kattr->test.cpu) in bpf_prog_test_run_tracing()
[all …]
/Linux-v5.15/drivers/platform/x86/dell/dell-wmi-sysman/
Dsysman.c227 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, buf, count); in wmi_sysman_attr_store()
/Linux-v5.15/drivers/staging/greybus/
Daudio_manager_sysfs.c85 struct kobj_attribute *kattr) in manager_sysfs_init_attribute() argument
89 err = sysfs_create_file(kobj, &kattr->attr); in manager_sysfs_init_attribute()
92 kattr->attr.name, err); in manager_sysfs_init_attribute()
/Linux-v5.15/fs/ocfs2/
Dfilecheck.c110 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_show() local
114 if (kattr->show) in ocfs2_filecheck_show()
115 ret = kattr->show(kobj, kattr, buf); in ocfs2_filecheck_show()
125 struct kobj_attribute *kattr = container_of(attr, in ocfs2_filecheck_store() local
129 if (kattr->store) in ocfs2_filecheck_store()
130 ret = kattr->store(kobj, kattr, buf, count); in ocfs2_filecheck_store()
/Linux-v5.15/fs/
Dnamespace.c3915 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in recalc_flags() argument
3920 flags &= ~kattr->attr_clr; in recalc_flags()
3922 flags |= kattr->attr_set; in recalc_flags()
3927 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in can_idmap_mount() argument
3931 if (!kattr->mnt_userns) in can_idmap_mount()
3961 static struct mount *mount_setattr_prepare(struct mount_kattr *kattr, in mount_setattr_prepare() argument
3979 flags = recalc_flags(kattr, m); in mount_setattr_prepare()
3985 *err = can_idmap_mount(kattr, m); in mount_setattr_prepare()
3991 if ((kattr->attr_set & MNT_READONLY) && in mount_setattr_prepare()
3997 } while (kattr->recurse && (m = next_mnt(m, mnt))); in mount_setattr_prepare()
[all …]
/Linux-v5.15/lib/
Dkobject.c839 struct kobj_attribute *kattr; in kobj_attr_show() local
842 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_show()
843 if (kattr->show) in kobj_attr_show()
844 ret = kattr->show(kobj, kattr, buf); in kobj_attr_show()
851 struct kobj_attribute *kattr; in kobj_attr_store() local
854 kattr = container_of(attr, struct kobj_attribute, attr); in kobj_attr_store()
855 if (kattr->store) in kobj_attr_store()
856 ret = kattr->store(kobj, kattr, buf, count); in kobj_attr_store()
/Linux-v5.15/drivers/platform/x86/
Dthink-lmi.c618 struct kobj_attribute *kattr; in tlmi_attr_show() local
620 kattr = container_of(attr, struct kobj_attribute, attr); in tlmi_attr_show()
621 if (kattr->show) in tlmi_attr_show()
622 return kattr->show(kobj, kattr, buf); in tlmi_attr_show()
629 struct kobj_attribute *kattr; in tlmi_attr_store() local
631 kattr = container_of(attr, struct kobj_attribute, attr); in tlmi_attr_store()
632 if (kattr->store) in tlmi_attr_store()
633 return kattr->store(kobj, kattr, buf, count); in tlmi_attr_store()
/Linux-v5.15/fs/sysfs/
Dfile.c696 struct attribute **kattr; in sysfs_change_owner() local
702 for (kattr = ktype->default_attrs; kattr && *kattr; kattr++) { in sysfs_change_owner()
703 error = sysfs_file_change_owner(kobj, (*kattr)->name, in sysfs_change_owner()
/Linux-v5.15/include/linux/
Dbpf.h485 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
1626 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
1628 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
1631 const union bpf_attr *kattr,
1634 const union bpf_attr *kattr,
1637 const union bpf_attr *kattr,
1640 const union bpf_attr *kattr,
1829 const union bpf_attr *kattr, in bpf_prog_test_run_xdp() argument
1836 const union bpf_attr *kattr, in bpf_prog_test_run_skb() argument
1843 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
[all …]
/Linux-v5.15/drivers/hid/
Dhid-cp2112.c948 struct device_attribute *kattr, const char *buf, in pstr_store() argument
953 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_store()
968 hid_err(hdev, "error writing %s string: %d\n", kattr->attr.name, in pstr_store()
980 struct device_attribute *kattr, char *buf) in pstr_show() argument
984 container_of(kattr, struct cp2112_pstring_attribute, attr); in pstr_show()
992 hid_err(hdev, "error reading %s string: %d\n", kattr->attr.name, in pstr_show()
1001 kattr->attr.name, report.length); in pstr_show()
Dwacom_sys.c1855 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument
1869 struct kobj_attribute *kattr, char *buf) \
1871 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
/Linux-v5.15/fs/ntfs/
Dfile.c108 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()
1547 char *kattr, *kaddr; in ntfs_commit_pages_after_write() local
1605 kattr = (u8*)a + le16_to_cpu(a->data.resident.value_offset); in ntfs_commit_pages_after_write()
1608 memcpy(kattr + pos, kaddr + pos, bytes); in ntfs_commit_pages_after_write()
1620 memcpy(kaddr, kattr, pos); in ntfs_commit_pages_after_write()
1622 memcpy(kaddr + end, kattr + end, attr_len - end); in ntfs_commit_pages_after_write()
/Linux-v5.15/kernel/sched/
Dcore.c7825 struct sched_attr *kattr, in sched_attr_copy_to_user() argument
7828 unsigned int ksize = sizeof(*kattr); in sched_attr_copy_to_user()
7846 kattr->size = min(usize, ksize); in sched_attr_copy_to_user()
7848 if (copy_to_user(uattr, kattr, kattr->size)) in sched_attr_copy_to_user()
7864 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local
7882 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4()
7884 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4()
7885 get_params(p, &kattr); in SYSCALL_DEFINE4()
7886 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4()
7894 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4()
[all …]
/Linux-v5.15/kernel/trace/
Dbpf_trace.c1593 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument