Home
last modified time | relevance | path

Searched refs:kernfs_open_file (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.10/fs/kernfs/
Dfile.c54 static struct kernfs_open_file *kernfs_of(struct file *file) in kernfs_of()
94 struct kernfs_open_file *of = sf->private; in kernfs_seq_stop_active()
104 struct kernfs_open_file *of = sf->private; in kernfs_seq_start()
133 struct kernfs_open_file *of = sf->private; in kernfs_seq_next()
154 struct kernfs_open_file *of = sf->private; in kernfs_seq_stop()
163 struct kernfs_open_file *of = sf->private; in kernfs_seq_show()
183 static ssize_t kernfs_file_direct_read(struct kernfs_open_file *of, in kernfs_file_direct_read()
248 struct kernfs_open_file *of = kernfs_of(file); in kernfs_fop_read()
275 struct kernfs_open_file *of = kernfs_of(file); in kernfs_fop_write()
336 struct kernfs_open_file *of = kernfs_of(file); in kernfs_vma_open()
[all …]
/Linux-v5.10/include/linux/
Dkernfs.h197 struct kernfs_open_file { struct
222 int (*open)(struct kernfs_open_file *of); argument
223 void (*release)(struct kernfs_open_file *of);
242 ssize_t (*read)(struct kernfs_open_file *of, char *buf, size_t bytes,
260 ssize_t (*write)(struct kernfs_open_file *of, char *buf, size_t bytes,
263 __poll_t (*poll)(struct kernfs_open_file *of,
266 int (*mmap)(struct kernfs_open_file *of, struct vm_area_struct *vma);
395 __poll_t kernfs_generic_poll(struct kernfs_open_file *of,
Dcgroup-defs.h33 struct kernfs_open_file;
566 int (*open)(struct kernfs_open_file *of);
567 void (*release)(struct kernfs_open_file *of);
606 ssize_t (*write)(struct kernfs_open_file *of,
609 __poll_t (*poll)(struct kernfs_open_file *of,
Dcgroup.h631 static inline struct cftype *of_cft(struct kernfs_open_file *of) in of_cft()
636 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of);
/Linux-v5.10/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c224 struct kernfs_open_file *of = m->private; in rdtgroup_seqfile_show()
232 static ssize_t rdtgroup_file_write(struct kernfs_open_file *of, char *buf, in rdtgroup_file_write()
254 static bool is_cpu_list(struct kernfs_open_file *of) in is_cpu_list()
261 static int rdtgroup_cpus_show(struct kernfs_open_file *of, in rdtgroup_cpus_show()
441 static ssize_t rdtgroup_cpus_write(struct kernfs_open_file *of, in rdtgroup_cpus_write()
651 struct kernfs_open_file *of) in rdtgroup_task_write_permission()
673 struct kernfs_open_file *of) in rdtgroup_move_task()
701 static ssize_t rdtgroup_tasks_write(struct kernfs_open_file *of, in rdtgroup_tasks_write()
744 static int rdtgroup_tasks_show(struct kernfs_open_file *of, in rdtgroup_tasks_show()
846 static int rdt_last_cmd_status_show(struct kernfs_open_file *of, in rdt_last_cmd_status_show()
[all …]
Dinternal.h271 int (*seq_show)(struct kernfs_open_file *of,
278 ssize_t (*write)(struct kernfs_open_file *of,
585 ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of,
587 int rdtgroup_schemata_show(struct kernfs_open_file *of,
Dctrlmondata.c297 ssize_t rdtgroup_schemata_write(struct kernfs_open_file *of, in rdtgroup_schemata_write()
394 int rdtgroup_schemata_show(struct kernfs_open_file *of, in rdtgroup_schemata_show()
451 struct kernfs_open_file *of = m->private; in rdtgroup_mondata_show()
/Linux-v5.10/fs/sysfs/
Dfile.c42 struct kernfs_open_file *of = sf->private; in sysfs_kf_seq_show()
80 static ssize_t sysfs_kf_bin_read(struct kernfs_open_file *of, char *buf, in sysfs_kf_bin_read()
104 static ssize_t sysfs_kf_read(struct kernfs_open_file *of, char *buf, in sysfs_kf_read()
130 static ssize_t sysfs_kf_write(struct kernfs_open_file *of, char *buf, in sysfs_kf_write()
143 static ssize_t sysfs_kf_bin_write(struct kernfs_open_file *of, char *buf, in sysfs_kf_bin_write()
164 static int sysfs_kf_bin_mmap(struct kernfs_open_file *of, in sysfs_kf_bin_mmap()
/Linux-v5.10/kernel/cgroup/
Ddebug.c42 struct kernfs_open_file *of = seq->private; in current_css_set_read()
205 struct kernfs_open_file *of = seq->private; in cgroup_subsys_states_read()
257 struct kernfs_open_file *of = seq->private; in cgroup_masks_read()
Dcgroup-v1.c395 struct kernfs_open_file *of = s->private; in cgroup_pidlist_start()
450 struct kernfs_open_file *of = s->private; in cgroup_pidlist_stop()
461 struct kernfs_open_file *of = s->private; in cgroup_pidlist_next()
486 static ssize_t __cgroup1_procs_write(struct kernfs_open_file *of, in __cgroup1_procs_write()
529 static ssize_t cgroup1_procs_write(struct kernfs_open_file *of, in cgroup1_procs_write()
535 static ssize_t cgroup1_tasks_write(struct kernfs_open_file *of, in cgroup1_tasks_write()
541 static ssize_t cgroup_release_agent_write(struct kernfs_open_file *of, in cgroup_release_agent_write()
Dcgroup.c623 struct cgroup_subsys_state *of_css(struct kernfs_open_file *of) in of_css()
3214 static ssize_t cgroup_subtree_control_write(struct kernfs_open_file *of, in cgroup_subtree_control_write()
3381 static ssize_t cgroup_type_write(struct kernfs_open_file *of, char *buf, in cgroup_type_write()
3416 static ssize_t cgroup_max_descendants_write(struct kernfs_open_file *of, in cgroup_max_descendants_write()
3459 static ssize_t cgroup_max_depth_write(struct kernfs_open_file *of, in cgroup_max_depth_write()
3565 static ssize_t cgroup_pressure_write(struct kernfs_open_file *of, char *buf, in cgroup_pressure_write()
3591 static ssize_t cgroup_io_pressure_write(struct kernfs_open_file *of, in cgroup_io_pressure_write()
3598 static ssize_t cgroup_memory_pressure_write(struct kernfs_open_file *of, in cgroup_memory_pressure_write()
3605 static ssize_t cgroup_cpu_pressure_write(struct kernfs_open_file *of, in cgroup_cpu_pressure_write()
3612 static __poll_t cgroup_pressure_poll(struct kernfs_open_file *of, in cgroup_pressure_poll()
[all …]
Dpids.c262 static ssize_t pids_max_write(struct kernfs_open_file *of, char *buf, in pids_max_write()
Dlegacy_freezer.c419 static ssize_t freezer_write(struct kernfs_open_file *of, in freezer_write()
Drdma.c425 static ssize_t rdmacg_resource_set_max(struct kernfs_open_file *of, in rdmacg_resource_set_max()
Dcpuset.c2333 static ssize_t cpuset_write_resmask(struct kernfs_open_file *of, in cpuset_write_resmask()
2502 static ssize_t sched_partition_write(struct kernfs_open_file *of, char *buf, in sched_partition_write()
/Linux-v5.10/mm/
Dhugetlb_cgroup.c492 static ssize_t hugetlb_cgroup_write(struct kernfs_open_file *of, in hugetlb_cgroup_write()
530 static ssize_t hugetlb_cgroup_write_legacy(struct kernfs_open_file *of, in hugetlb_cgroup_write_legacy()
536 static ssize_t hugetlb_cgroup_write_dfl(struct kernfs_open_file *of, in hugetlb_cgroup_write_dfl()
542 static ssize_t hugetlb_cgroup_reset(struct kernfs_open_file *of, in hugetlb_cgroup_reset()
Dmemcontrol.c3522 static ssize_t mem_cgroup_force_empty_write(struct kernfs_open_file *of, in mem_cgroup_force_empty_write()
3839 static ssize_t mem_cgroup_write(struct kernfs_open_file *of, in mem_cgroup_write()
3883 static ssize_t mem_cgroup_reset(struct kernfs_open_file *of, char *buf, in mem_cgroup_reset()
4858 static ssize_t memcg_write_event_control(struct kernfs_open_file *of, in memcg_write_event_control()
6262 static ssize_t memory_min_write(struct kernfs_open_file *of, in memory_min_write()
6285 static ssize_t memory_low_write(struct kernfs_open_file *of, in memory_low_write()
6308 static ssize_t memory_high_write(struct kernfs_open_file *of, in memory_high_write()
6358 static ssize_t memory_max_write(struct kernfs_open_file *of, in memory_max_write()
6482 static ssize_t memory_oom_group_write(struct kernfs_open_file *of, in memory_oom_group_write()
7378 static ssize_t swap_high_write(struct kernfs_open_file *of, in swap_high_write()
[all …]
/Linux-v5.10/net/core/
Dnetprio_cgroup.c195 static ssize_t write_priomap(struct kernfs_open_file *of, in write_priomap()
/Linux-v5.10/block/
Dblk-throttle.c1448 static ssize_t tg_set_conf(struct kernfs_open_file *of, in tg_set_conf()
1481 static ssize_t tg_set_conf_u64(struct kernfs_open_file *of, in tg_set_conf_u64()
1487 static ssize_t tg_set_conf_uint(struct kernfs_open_file *of, in tg_set_conf_uint()
1637 static ssize_t tg_set_limit(struct kernfs_open_file *of, in tg_set_limit()
Dbfq-cgroup.c1045 static ssize_t bfq_io_set_device_weight(struct kernfs_open_file *of, in bfq_io_set_device_weight()
1083 static ssize_t bfq_io_set_weight(struct kernfs_open_file *of, in bfq_io_set_weight()
Dblk-iolatency.c788 static ssize_t iolatency_set_limit(struct kernfs_open_file *of, char *buf, in iolatency_set_limit()
Dblk-iocost.c3005 static ssize_t ioc_weight_write(struct kernfs_open_file *of, char *buf, in ioc_weight_write()
3120 static ssize_t ioc_qos_write(struct kernfs_open_file *of, char *input, in ioc_qos_write()
3287 static ssize_t ioc_cost_model_write(struct kernfs_open_file *of, char *input, in ioc_cost_model_write()
/Linux-v5.10/security/
Ddevice_cgroup.c758 static ssize_t devcgroup_access_write(struct kernfs_open_file *of, in devcgroup_access_write()
/Linux-v5.10/kernel/sched/
Dcore.c7786 static ssize_t cpu_uclamp_write(struct kernfs_open_file *of, char *buf, in cpu_uclamp_write()
7821 static ssize_t cpu_uclamp_min_write(struct kernfs_open_file *of, in cpu_uclamp_min_write()
7828 static ssize_t cpu_uclamp_max_write(struct kernfs_open_file *of, in cpu_uclamp_max_write()
8367 static ssize_t cpu_max_write(struct kernfs_open_file *of, in cpu_max_write()