Home
last modified time | relevance | path

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

12

/kernel/bpf/
Dinode.c123 static void bpf_dentry_finalize(struct dentry *dentry, struct inode *inode, in bpf_dentry_finalize() argument
126 d_instantiate(dentry, inode); in bpf_dentry_finalize()
127 dget(dentry); in bpf_dentry_finalize()
133 static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in bpf_mkdir() argument
147 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkdir()
307 static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, in bpf_mkobj_ops() argument
311 struct inode *dir = dentry->d_parent->d_inode; in bpf_mkobj_ops()
320 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkobj_ops()
324 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument
326 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog()
[all …]
Doffload.c335 ns_inode = ns_path.dentry->d_inode; in bpf_prog_offload_info_fill()
538 ns_inode = ns_path.dentry->d_inode; in bpf_map_offload_info_fill()
/kernel/
Drelay.c304 static struct dentry *create_buf_file_default_callback(const char *filename, in create_buf_file_default_callback()
305 struct dentry *parent, in create_buf_file_default_callback()
316 static int remove_buf_file_default_callback(struct dentry *dentry) in remove_buf_file_default_callback() argument
409 struct dentry *dentry) in relay_set_buf_dentry() argument
411 buf->dentry = dentry; in relay_set_buf_dentry()
412 d_inode(buf->dentry)->i_size = buf->early_bytes; in relay_set_buf_dentry()
415 static struct dentry *relay_create_buf_file(struct rchan *chan, in relay_create_buf_file()
419 struct dentry *dentry; in relay_create_buf_file() local
428 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
431 if (IS_ERR(dentry)) in relay_create_buf_file()
[all …]
Daudit_fsnotify.c78 struct dentry *dentry; in audit_alloc_mark() local
85 dentry = kern_path_locked(pathname, &path); in audit_alloc_mark()
86 if (IS_ERR(dentry)) in audit_alloc_mark()
87 return (void *)dentry; /* returning an error */ in audit_alloc_mark()
88 inode = path.dentry->d_inode; in audit_alloc_mark()
100 audit_update_mark(audit_mark, dentry->d_inode); in audit_alloc_mark()
109 dput(dentry); in audit_alloc_mark()
171 inode = ((const struct path *)data)->dentry->d_inode; in audit_mark_handle_event()
Dauditsc.c874 context->pwd.dentry = NULL; in audit_free_names()
1551 if (context->pwd.dentry && context->pwd.mnt) { in audit_log_exit()
1764 static void handle_path(const struct dentry *dentry) in handle_path() argument
1768 const struct dentry *d, *parent; in handle_path()
1778 d = dentry; in handle_path()
1892 if (!context->pwd.dentry) in __audit_getname()
1897 const struct dentry *dentry) in audit_copy_fcaps() argument
1902 if (!dentry) in audit_copy_fcaps()
1905 rc = get_vfs_caps_from_disk(dentry, &caps); in audit_copy_fcaps()
1921 const struct dentry *dentry, in audit_copy_inode() argument
[all …]
Dfail_function.c34 static struct dentry *fei_debugfs_dir;
157 struct dentry *dir; in fei_debugfs_add_attr()
166 struct dentry *dir; in fei_debugfs_remove_attr()
325 struct dentry *dir; in fei_debugfs_init()
Daudit_watch.c138 struct inode *inode = d_backing_inode(path->dentry); in audit_init_parent()
351 struct dentry *d = kern_path_locked(watch->path, parent); in audit_get_nd()
359 inode_unlock(d_backing_inode(parent->dentry)); in audit_get_nd()
429 parent = audit_find_parent(d_backing_inode(parent_path.dentry)); in audit_add_watch()
485 inode = d_backing_inode(((const struct path *)data)->dentry); in audit_watch_handle_event()
/kernel/gcov/
Dfs.c58 struct dentry *dentry; member
59 struct dentry **links;
366 static void add_links(struct gcov_node *node, struct dentry *parent) in add_links()
375 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
446 node->dentry = debugfs_create_file(deskew(node->name), 0600, in new_node()
447 parent->dentry, node, &gcov_data_fops); in new_node()
449 node->dentry = debugfs_create_dir(node->name, parent->dentry); in new_node()
451 add_links(node, parent->dentry); in new_node()
484 debugfs_remove(node->dentry); in release_node()
761 root_node.dentry = debugfs_create_dir("gcov", NULL); in gcov_fs_init()
[all …]
/kernel/trace/
Dtrace.h302 struct dentry *dir;
303 struct dentry *options;
304 struct dentry *percpu_dir;
305 struct dentry *event_dir;
443 struct dentry *entry;
690 struct dentry *trace_create_file(const char *name,
692 struct dentry *parent,
696 struct dentry *tracing_init_dentry(void);
1046 struct dentry *parent);
1051 void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer);
[all …]
Dtrace_hwlat.c60 static struct dentry *hwlat_sample_width; /* sample width us */
61 static struct dentry *hwlat_sample_window; /* sample window us */
528 struct dentry *d_tracer; in init_tracefs()
529 struct dentry *top_dir; in init_tracefs()
Dtrace_stat.c37 struct dentry *file;
45 static struct dentry *stat_dir;
281 struct dentry *d_tracing; in tracing_stat_init()
Dtrace_dynevent.c209 struct dentry *d_tracer; in init_dynamic_event()
210 struct dentry *entry; in init_dynamic_event()
Dtrace_events.c708 struct dentry *dir = file->dir; in remove_event_file_dir()
709 struct dentry *child; in remove_event_file_dir()
1873 static struct dentry *
1875 struct trace_event_file *file, struct dentry *parent) in event_subsystem_dir()
1879 struct dentry *entry; in event_subsystem_dir()
1949 event_create_dir(struct dentry *parent, struct trace_event_file *file) in event_create_dir()
1954 struct dentry *d_events; in event_create_dir()
2909 create_event_toplevel_files(struct dentry *parent, struct trace_array *tr) in create_event_toplevel_files()
2911 struct dentry *d_events; in create_event_toplevel_files()
2912 struct dentry *entry; in create_event_toplevel_files()
[all …]
Dtrace_uprobe.c427 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
432 if (comp_inode != d_real_inode(orig->path.dentry) || in trace_uprobe_has_same_uprobe()
491 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
494 if (new_inode == d_real_inode(tmp->path.dentry) && in validate_ref_ctr_offset()
603 if (!d_is_reg(path.dentry)) { in trace_uprobe_create()
1059 tu->inode = d_real_inode(tu->path.dentry); in trace_uprobe_enable()
1582 if (!d_is_reg(path.dentry)) { in create_local_trace_uprobe()
1632 struct dentry *d_tracer; in init_uprobe_trace()
Dtrace.c5404 static void trace_create_eval_file(struct dentry *d_tracer) in trace_create_eval_file()
5411 static inline void trace_create_eval_file(struct dentry *d_tracer) { } in trace_create_eval_file()
7773 static struct dentry *tracing_get_dentry(struct trace_array *tr) in tracing_get_dentry()
7786 static struct dentry *tracing_dentry_percpu(struct trace_array *tr, int cpu) in tracing_dentry_percpu()
7788 struct dentry *d_tracer; in tracing_dentry_percpu()
7805 static struct dentry *
7806 trace_create_cpu_file(const char *name, umode_t mode, struct dentry *parent, in trace_create_cpu_file()
7809 struct dentry *ret = trace_create_file(name, mode, parent, data, fops); in trace_create_cpu_file()
7819 struct dentry *d_percpu = tracing_dentry_percpu(tr, cpu); in tracing_init_tracefs_percpu()
7820 struct dentry *d_cpu; in tracing_init_tracefs_percpu()
[all …]
Dblktrace.c431 static int blk_remove_buf_file_callback(struct dentry *dentry) in blk_remove_buf_file_callback() argument
433 debugfs_remove(dentry); in blk_remove_buf_file_callback()
438 static struct dentry *blk_create_buf_file_callback(const char *filename, in blk_create_buf_file_callback()
439 struct dentry *parent, in blk_create_buf_file_callback()
479 struct dentry *dir = NULL; in do_blk_trace_setup()
Dtrace_printk.c370 struct dentry *d_tracer; in init_trace_printk_function_export()
/kernel/power/
Denergy_model.c28 static struct dentry *rootdir;
30 static void em_debug_create_cs(struct em_cap_state *cs, struct dentry *pd) in em_debug_create_cs()
32 struct dentry *d; in em_debug_create_cs()
54 struct dentry *d; in em_debug_create_pd()
Dqos.c532 static int register_pm_qos_misc(struct pm_qos_object *qos, struct dentry *d) in register_pm_qos_misc()
634 struct dentry *d; in pm_qos_power_init()
/kernel/dma/
Ddebug.c848 struct dentry *dentry = debugfs_create_dir("dma-api", NULL); in dma_debug_fs_init() local
850 debugfs_create_bool("disabled", 0444, dentry, &global_disable); in dma_debug_fs_init()
851 debugfs_create_u32("error_count", 0444, dentry, &error_count); in dma_debug_fs_init()
852 debugfs_create_u32("all_errors", 0644, dentry, &show_all_errors); in dma_debug_fs_init()
853 debugfs_create_u32("num_errors", 0644, dentry, &show_num_errors); in dma_debug_fs_init()
854 debugfs_create_u32("num_free_entries", 0444, dentry, &num_free_entries); in dma_debug_fs_init()
855 debugfs_create_u32("min_free_entries", 0444, dentry, &min_free_entries); in dma_debug_fs_init()
856 debugfs_create_u32("nr_total_entries", 0444, dentry, &nr_total_entries); in dma_debug_fs_init()
857 debugfs_create_file("driver_filter", 0644, dentry, NULL, &filter_fops); in dma_debug_fs_init()
858 debugfs_create_file("dump", 0444, dentry, NULL, &dump_fops); in dma_debug_fs_init()
/kernel/irq/
Ddebugfs.c10 static struct dentry *irq_dir;
257 struct dentry *root_dir; in irq_debugfs_init()
Dinternals.h481 void irq_domain_debugfs_init(struct dentry *root);
483 static inline void irq_domain_debugfs_init(struct dentry *root) in irq_domain_debugfs_init()
/kernel/cgroup/
Dcgroup-v1.c690 int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry) in cgroupstats_build() argument
692 struct kernfs_node *kn = kernfs_node_from_dentry(dentry); in cgroupstats_build()
698 if (dentry->d_sb->s_type != &cgroup_fs_type || !kn || in cgroupstats_build()
/kernel/locking/
Dlock_events.c146 struct dentry *d_counts = debugfs_create_dir(LOCK_EVENTS_DIR, NULL); in init_lockevent_counts()
/kernel/time/
Dtest_udelay.c24 static struct dentry *udelay_test_debugfs_file;

12