| /linux/net/bpf/ |
| H A D | test_run.c | 436 static int bpf_test_finish(const union bpf_attr *kattr, in bpf_test_finish() argument 441 void __user *data_out = u64_to_user_ptr(kattr->test.data_out); in bpf_test_finish() 448 if (kattr->test.data_size_out && in bpf_test_finish() 449 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 450 copy_size = kattr->test.data_size_out; in bpf_test_finish() 663 static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size, in BTF_ID_FLAGS() 666 void __user *data_in = u64_to_user_ptr(kattr->test.data_in); in BTF_ID_FLAGS() 686 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument 694 if (kattr->test.flags || kattr->test.cpu || kattr->test.batch_size) in bpf_prog_test_run_tracing() 783 const union bpf_attr *kattr, in bpf_prog_test_run_raw_tp() argument [all …]
|
| /linux/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()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_class_sysfs.c | 45 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_show() local 47 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_show() 48 if (kattr->show) { in xe_hw_engine_class_sysfs_attr_show() 50 return kattr->show(kobj, kattr, buf); in xe_hw_engine_class_sysfs_attr_show() 62 struct kobj_attribute *kattr; in xe_hw_engine_class_sysfs_attr_store() local 64 kattr = container_of(attr, struct kobj_attribute, attr); in xe_hw_engine_class_sysfs_attr_store() 65 if (kattr->store) { in xe_hw_engine_class_sysfs_attr_store() 67 return kattr->store(kobj, kattr, buf, count); in xe_hw_engine_class_sysfs_attr_store()
|
| H A D | xe_gt_throttle.c | 136 struct kobj_attribute *kattr = container_of(*pother, struct kobj_attribute, attr); in reasons_show() local 137 struct throttle_attribute *other_ta = kobj_attribute_to_throttle(kattr); in reasons_show()
|
| /linux/fs/ |
| H A D | namespace.c | 4941 static unsigned int recalc_flags(struct mount_kattr *kattr, struct mount *mnt) in do_mount_setattr() 4946 flags &= ~kattr->attr_clr; in do_mount_setattr() 4948 flags |= kattr->attr_set; in do_mount_setattr() 4953 static int can_idmap_mount(const struct mount_kattr *kattr, struct mount *mnt) in do_mount_setattr() 4958 if (!kattr->mnt_idmap) in do_mount_setattr() 4965 if (kattr->mnt_userns == m->mnt_sb->s_user_ns) in do_mount_setattr() 4972 if (!(kattr->kflags & MOUNT_KATTR_IDMAP_REPLACE) && is_idmapped_mnt(m)) in do_mount_setattr() 4996 * @kattr: the new mount attributes in build_mount_idmapped() 4997 * @mnt: the mount to which @kattr will be applied in build_mount_idmapped() 4999 * Check whether thew new mount attributes in @kattr allo in build_mount_idmapped() 4794 recalc_flags(struct mount_kattr * kattr,struct mount * mnt) recalc_flags() argument 4806 can_idmap_mount(const struct mount_kattr * kattr,struct mount * mnt) can_idmap_mount() argument 4856 mnt_allow_writers(const struct mount_kattr * kattr,const struct mount * mnt) mnt_allow_writers() argument 4864 mount_setattr_prepare(struct mount_kattr * kattr,struct mount * mnt) mount_setattr_prepare() argument 4899 do_idmap_mount(const struct mount_kattr * kattr,struct mount * mnt) do_idmap_mount() argument 4913 mount_setattr_commit(struct mount_kattr * kattr,struct mount * mnt) mount_setattr_commit() argument 4935 do_mount_setattr(const struct path * path,struct mount_kattr * kattr) do_mount_setattr() argument 4995 build_mount_idmapped(const struct mount_attr * attr,size_t usize,struct mount_kattr * kattr) build_mount_idmapped() argument 5056 build_mount_kattr(const struct mount_attr * attr,size_t usize,struct mount_kattr * kattr) build_mount_kattr() argument 5108 finish_mount_kattr(struct mount_kattr * kattr) finish_mount_kattr() argument 5120 wants_mount_setattr(struct mount_attr __user * uattr,size_t usize,struct mount_kattr * kattr) wants_mount_setattr() argument 5158 struct mount_kattr kattr; SYSCALL_DEFINE5() local 5205 struct mount_kattr kattr = {}; SYSCALL_DEFINE5() local [all...] |
| /linux/kernel/sched/ |
| H A D | syscalls.c | 1063 struct sched_attr kattr = { }; in SYSCALL_DEFINE4() local 1086 kattr.sched_policy = p->policy; in SYSCALL_DEFINE4() 1088 kattr.sched_flags |= SCHED_FLAG_RESET_ON_FORK; in SYSCALL_DEFINE4() 1089 get_params(p, &kattr, flags); in SYSCALL_DEFINE4() 1090 kattr.sched_flags &= SCHED_FLAG_ALL; in SYSCALL_DEFINE4() 1098 kattr.sched_util_min = p->uclamp_req[UCLAMP_MIN].value; in SYSCALL_DEFINE4() 1099 kattr.sched_util_max = p->uclamp_req[UCLAMP_MAX].value; in SYSCALL_DEFINE4() 1103 kattr.size = min(usize, sizeof(kattr)); in SYSCALL_DEFINE4() 1104 return copy_struct_to_user(uattr, usize, &kattr, sizeof(kattr), NULL); in SYSCALL_DEFINE4()
|
| /linux/include/linux/ |
| H A D | bpf.h | 1138 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 2306 int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_prog_disassoc_struct_ops() 3141 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_tracing_btf_ctx_access() 3143 int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, in bpf_tracing_btf_ctx_access() 3146 const union bpf_attr *kattr, in bpf_tracing_btf_ctx_access() 3149 const union bpf_attr *kattr, 3152 const union bpf_attr *kattr, 3155 const union bpf_attr *kattr, 3158 const union bpf_attr *kattr, 3493 const union bpf_attr *kattr, 3456 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 3463 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 3470 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 3477 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 3484 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 3733 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...] |
| /linux/drivers/hid/ |
| H A D | wacom_sys.c | 1891 struct kobj_attribute *kattr, in wacom_show_remote_mode() argument 1905 struct kobj_attribute *kattr, char *buf) \ 1907 return wacom_show_remote_mode(kobj, kattr, buf, SET_ID); \
|
| /linux/kernel/trace/ |
| H A D | bpf_trace.c | 1817 const union bpf_attr *kattr, in bpf_prog_test_run_tracing() argument
|