Home
last modified time | relevance | path

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

12

/kernel/bpf/
Dinode.c145 static void bpf_dentry_finalize(struct dentry *dentry, struct inode *inode, in bpf_dentry_finalize() argument
148 d_instantiate(dentry, inode); in bpf_dentry_finalize()
149 dget(dentry); in bpf_dentry_finalize()
156 struct dentry *dentry, umode_t mode) in bpf_mkdir() argument
170 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkdir()
331 static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, in bpf_mkobj_ops() argument
335 struct inode *dir = dentry->d_parent->d_inode; in bpf_mkobj_ops()
344 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkobj_ops()
348 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument
350 return bpf_mkobj_ops(dentry, mode, arg, &bpf_prog_iops, in bpf_mkprog()
[all …]
/kernel/
Drelay.c344 struct dentry *dentry) in relay_set_buf_dentry() argument
346 buf->dentry = dentry; in relay_set_buf_dentry()
347 d_inode(buf->dentry)->i_size = buf->early_bytes; in relay_set_buf_dentry()
350 static struct dentry *relay_create_buf_file(struct rchan *chan, in relay_create_buf_file()
354 struct dentry *dentry; in relay_create_buf_file() local
363 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
366 if (IS_ERR(dentry)) in relay_create_buf_file()
367 dentry = NULL; in relay_create_buf_file()
371 return dentry; in relay_create_buf_file()
382 struct dentry *dentry; in relay_open_buf() local
[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 ERR_CAST(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()
110 dput(dentry); in audit_alloc_mark()
Dusermode_driver.c64 if (WARN_ON_ONCE(info->wd.dentry || info->wd.mnt)) in umd_load_blob()
72 info->wd.dentry = mnt->mnt_root; in umd_load_blob()
85 !info->wd.dentry || in umd_unload_blob()
86 info->wd.mnt->mnt_root != info->wd.dentry)) in umd_unload_blob()
91 info->wd.dentry = NULL; in umd_unload_blob()
Dauditsc.c906 context->pwd.dentry = NULL; in audit_free_names()
1431 if (context->pwd.dentry && context->pwd.mnt) in audit_log_name()
1642 if (context->pwd.dentry && context->pwd.mnt) { in audit_log_exit()
1854 static void handle_path(const struct dentry *dentry) in handle_path() argument
1858 const struct dentry *d, *parent; in handle_path()
1868 d = dentry; in handle_path()
1932 if (!context->pwd.dentry) in audit_alloc_name()
1988 const struct dentry *dentry) in audit_copy_fcaps() argument
1993 if (!dentry) in audit_copy_fcaps()
1996 rc = get_vfs_caps_from_disk(&init_user_ns, dentry, &caps); in audit_copy_fcaps()
[all …]
Dfail_function.c34 static struct dentry *fei_debugfs_dir;
157 struct dentry *dir; in fei_debugfs_add_attr()
323 struct dentry *dir; in fei_debugfs_init()
Daudit_watch.c138 struct inode *inode = d_backing_inode(path->dentry); in audit_init_parent()
349 struct dentry *d = kern_path_locked(watch->path, parent); in audit_get_nd()
357 inode_unlock(d_backing_inode(parent->dentry)); in audit_get_nd()
427 parent = audit_find_parent(d_backing_inode(parent_path.dentry)); in audit_add_watch()
/kernel/gcov/
Dfs.c59 struct dentry *dentry; member
60 struct dentry **links;
476 static void add_links(struct gcov_node *node, struct dentry *parent) in add_links()
485 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
556 node->dentry = debugfs_create_file(deskew(node->name), 0600, in new_node()
557 parent->dentry, node, &gcov_data_fops); in new_node()
559 node->dentry = debugfs_create_dir(node->name, parent->dentry); in new_node()
561 add_links(node, parent->dentry); in new_node()
594 debugfs_remove(node->dentry); in release_node()
871 root_node.dentry = debugfs_create_dir("gcov", NULL); in gcov_fs_init()
[all …]
/kernel/trace/
Dtrace_recursion_record.c227 struct dentry *dentry; in create_recursed_functions() local
229 dentry = trace_create_file("recursed_functions", TRACE_MODE_WRITE, in create_recursed_functions()
231 if (!dentry) in create_recursed_functions()
Dtrace.h321 struct dentry *d_max_latency;
361 struct dentry *dir;
362 struct dentry *options;
363 struct dentry *percpu_dir;
364 struct dentry *event_dir;
511 struct dentry *entry;
599 struct dentry *trace_create_file(const char *name,
601 struct dentry *parent,
1001 struct dentry *parent);
1008 void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer);
[all …]
Dtrace_hwlat.c57 static struct dentry *hwlat_sample_width; /* sample width us */
58 static struct dentry *hwlat_sample_window; /* sample window us */
59 static struct dentry *hwlat_thread_mode; /* hwlat thread mode */
772 struct dentry *top_dir; in init_tracefs()
Dtrace_uprobe.c414 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
419 if (comp_inode != d_real_inode(orig->path.dentry) || in trace_uprobe_has_same_uprobe()
478 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
481 if (new_inode == d_real_inode(tmp->path.dentry) && in validate_ref_ctr_offset()
595 if (!d_is_reg(path.dentry)) { in __trace_uprobe_create()
1063 tu->inode = d_real_inode(tu->path.dentry); in trace_uprobe_enable()
1600 if (!d_is_reg(path.dentry)) { in create_local_trace_uprobe()
Dtrace_stat.c37 struct dentry *file;
45 static struct dentry *stat_dir;
Dtrace_events.c974 struct dentry *dir = file->dir; in remove_event_file_dir()
975 struct dentry *child; in remove_event_file_dir()
2273 static struct dentry *
2275 struct trace_event_file *file, struct dentry *parent) in event_subsystem_dir()
2279 struct dentry *entry; in event_subsystem_dir()
2391 event_create_dir(struct dentry *parent, struct trace_event_file *file) in event_create_dir()
2395 struct dentry *d_events; in event_create_dir()
3544 create_event_toplevel_files(struct dentry *parent, struct trace_array *tr) in create_event_toplevel_files()
3546 struct dentry *d_events; in create_event_toplevel_files()
3547 struct dentry *entry; in create_event_toplevel_files()
[all …]
Dtrace.c1715 struct dentry *d_tracer) in trace_create_maxlat_file()
6160 static void trace_create_eval_file(struct dentry *d_tracer) in trace_create_eval_file()
6167 static inline void trace_create_eval_file(struct dentry *d_tracer) { } in trace_create_eval_file()
8692 static struct dentry *tracing_get_dentry(struct trace_array *tr) in tracing_get_dentry()
8705 static struct dentry *tracing_dentry_percpu(struct trace_array *tr, int cpu) in tracing_dentry_percpu()
8707 struct dentry *d_tracer; in tracing_dentry_percpu()
8724 static struct dentry *
8725 trace_create_cpu_file(const char *name, umode_t mode, struct dentry *parent, in trace_create_cpu_file()
8728 struct dentry *ret = trace_create_file(name, mode, parent, data, fops); in trace_create_cpu_file()
8738 struct dentry *d_percpu = tracing_dentry_percpu(tr, cpu); in tracing_init_tracefs_percpu()
[all …]
Dblktrace.c444 static int blk_remove_buf_file_callback(struct dentry *dentry) in blk_remove_buf_file_callback() argument
446 debugfs_remove(dentry); in blk_remove_buf_file_callback()
451 static struct dentry *blk_create_buf_file_callback(const char *filename, in blk_create_buf_file_callback()
452 struct dentry *parent, in blk_create_buf_file_callback()
487 struct dentry *dir = NULL; in do_blk_trace_setup()
/kernel/power/
Denergy_model.c32 static struct dentry *rootdir;
34 static void em_debug_create_ps(struct em_perf_state *ps, struct dentry *pd) in em_debug_create_ps()
36 struct dentry *d; in em_debug_create_ps()
69 struct dentry *d; in em_debug_create_pd()
/kernel/dma/
Ddebug.c808 struct dentry *dentry = debugfs_create_dir("dma-api", NULL); in dma_debug_fs_init() local
810 debugfs_create_bool("disabled", 0444, dentry, &global_disable); in dma_debug_fs_init()
811 debugfs_create_u32("error_count", 0444, dentry, &error_count); in dma_debug_fs_init()
812 debugfs_create_u32("all_errors", 0644, dentry, &show_all_errors); in dma_debug_fs_init()
813 debugfs_create_u32("num_errors", 0644, dentry, &show_num_errors); in dma_debug_fs_init()
814 debugfs_create_u32("num_free_entries", 0444, dentry, &num_free_entries); in dma_debug_fs_init()
815 debugfs_create_u32("min_free_entries", 0444, dentry, &min_free_entries); in dma_debug_fs_init()
816 debugfs_create_u32("nr_total_entries", 0444, dentry, &nr_total_entries); in dma_debug_fs_init()
817 debugfs_create_file("driver_filter", 0644, dentry, NULL, &filter_fops); in dma_debug_fs_init()
818 debugfs_create_file("dump", 0444, dentry, NULL, &dump_fops); in dma_debug_fs_init()
Dmap_benchmark.c48 struct dentry *debugfs;
303 struct dentry *entry; in __map_benchmark_probe()
/kernel/printk/
Dindex.c18 static struct dentry *dfs_index;
185 struct dentry *dfs_root = debugfs_create_dir("printk", NULL); in pi_init()
/kernel/sched/
Ddebug.c300 static struct dentry *debugfs_sched;
304 struct dentry __maybe_unused *numa; in sched_init_debug()
349 static struct dentry *sd_dentry;
377 static void register_sd(struct sched_domain *sd, struct dentry *parent) in register_sd()
417 struct dentry *d_cpu; in update_sched_domain_debugfs()
426 struct dentry *d_sd; in update_sched_domain_debugfs()
/kernel/irq/
Ddebugfs.c10 static struct dentry *irq_dir;
242 struct dentry *root_dir; in irq_debugfs_init()
Dinternals.h500 void irq_domain_debugfs_init(struct dentry *root);
502 static inline void irq_domain_debugfs_init(struct dentry *root) in irq_domain_debugfs_init()
/kernel/locking/
Dlock_events.c146 struct dentry *d_counts = debugfs_create_dir(LOCK_EVENTS_DIR, NULL); in init_lockevent_counts()
/kernel/cgroup/
Dcgroup-v1.c709 int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry) in cgroupstats_build() argument
711 struct kernfs_node *kn = kernfs_node_from_dentry(dentry); in cgroupstats_build()
717 if (dentry->d_sb->s_type != &cgroup_fs_type || !kn || in cgroupstats_build()

12