Home
last modified time | relevance | path

Searched refs:dentry (Results 1 – 25 of 41) 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.c341 struct dentry *dentry) in relay_set_buf_dentry() argument
343 buf->dentry = dentry; in relay_set_buf_dentry()
344 d_inode(buf->dentry)->i_size = buf->early_bytes; in relay_set_buf_dentry()
347 static struct dentry *relay_create_buf_file(struct rchan *chan, in relay_create_buf_file()
351 struct dentry *dentry; in relay_create_buf_file() local
360 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
363 if (IS_ERR(dentry)) in relay_create_buf_file()
364 dentry = NULL; in relay_create_buf_file()
368 return dentry; in relay_create_buf_file()
379 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.c934 context->pwd.dentry = NULL; in audit_free_names()
1533 if (context->pwd.dentry && context->pwd.mnt) in audit_log_name()
1791 if (context->pwd.dentry && context->pwd.mnt) { in audit_log_exit()
2110 static void handle_path(const struct dentry *dentry) in handle_path() argument
2114 const struct dentry *d, *parent; in handle_path()
2124 d = dentry; in handle_path()
2188 if (!context->pwd.dentry) in audit_alloc_name()
2244 const struct dentry *dentry) in audit_copy_fcaps() argument
2249 if (!dentry) in audit_copy_fcaps()
2252 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()
317 struct dentry *dir; in fei_debugfs_init()
Daudit_watch.c138 struct inode *inode = d_backing_inode(path->dentry); in audit_init_parent()
350 struct dentry *d = kern_path_locked(watch->path, parent); in audit_get_nd()
358 inode_unlock(d_backing_inode(parent->dentry)); in audit_get_nd()
428 parent = audit_find_parent(d_backing_inode(parent_path.dentry)); in audit_add_watch()
/kernel/trace/rv/
Drv.h5 struct dentry *root_dir;
6 struct dentry *monitors_dir;
37 struct dentry *root_d;
45 struct dentry *get_monitors_root(void);
52 int init_rv_reactors(struct dentry *root_dir);
64 static inline int init_rv_reactors(struct dentry *root_dir) in init_rv_reactors()
Drv.c157 struct dentry *get_monitors_root(void) in get_monitors_root()
343 struct dentry *root = get_monitors_root(); in create_monitor_dir()
345 struct dentry *tmp; in create_monitor_dir()
762 struct dentry *tmp; in rv_init_interface()
Drv_reactors.c442 struct dentry *tmp; in reactor_populate_monitor()
482 int init_rv_reactors(struct dentry *root_dir) in init_rv_reactors()
484 struct dentry *available, *reacting; in init_rv_reactors()
/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.h320 struct dentry *d_max_latency;
360 struct dentry *dir;
361 struct dentry *options;
362 struct dentry *percpu_dir;
363 struct dentry *event_dir;
510 struct dentry *entry;
598 struct dentry *trace_create_file(const char *name,
600 struct dentry *parent,
1000 struct dentry *parent);
1007 void ftrace_init_tracefs(struct trace_array *tr, struct dentry *d_tracer);
[all …]
Dtrace_osnoise.c2050 static int init_timerlat_stack_tracefs(struct dentry *top_dir) in init_timerlat_stack_tracefs()
2052 struct dentry *tmp; in init_timerlat_stack_tracefs()
2062 static int init_timerlat_stack_tracefs(struct dentry *top_dir) in init_timerlat_stack_tracefs()
2071 static int init_timerlat_tracefs(struct dentry *top_dir) in init_timerlat_tracefs()
2073 struct dentry *tmp; in init_timerlat_tracefs()
2083 static int init_timerlat_tracefs(struct dentry *top_dir) in init_timerlat_tracefs()
2098 struct dentry *top_dir; in init_tracefs()
2099 struct dentry *tmp; in init_tracefs()
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.c416 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
420 if (comp_inode != d_real_inode(orig->path.dentry) || in trace_uprobe_has_same_uprobe()
479 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
482 if (new_inode == d_real_inode(tmp->path.dentry) && in validate_ref_ctr_offset()
596 if (!d_is_reg(path.dentry)) { in __trace_uprobe_create()
1063 tu->inode = d_real_inode(tu->path.dentry); in trace_uprobe_enable()
1595 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.c993 struct dentry *dir = file->dir; in remove_event_file_dir()
994 struct dentry *child; in remove_event_file_dir()
2296 static struct dentry *
2298 struct trace_event_file *file, struct dentry *parent) in event_subsystem_dir()
2302 struct dentry *entry; in event_subsystem_dir()
2415 event_create_dir(struct dentry *parent, struct trace_event_file *file) in event_create_dir()
2419 struct dentry *d_events; in event_create_dir()
3572 create_event_toplevel_files(struct dentry *parent, struct trace_array *tr) in create_event_toplevel_files()
3574 struct dentry *d_events; in create_event_toplevel_files()
3575 struct dentry *entry; in create_event_toplevel_files()
[all …]
/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.c806 struct dentry *dentry = debugfs_create_dir("dma-api", NULL); in dma_debug_fs_init() local
808 debugfs_create_bool("disabled", 0444, dentry, &global_disable); in dma_debug_fs_init()
809 debugfs_create_u32("error_count", 0444, dentry, &error_count); in dma_debug_fs_init()
810 debugfs_create_u32("all_errors", 0644, dentry, &show_all_errors); in dma_debug_fs_init()
811 debugfs_create_u32("num_errors", 0644, dentry, &show_num_errors); in dma_debug_fs_init()
812 debugfs_create_u32("num_free_entries", 0444, dentry, &num_free_entries); in dma_debug_fs_init()
813 debugfs_create_u32("min_free_entries", 0444, dentry, &min_free_entries); in dma_debug_fs_init()
814 debugfs_create_u32("nr_total_entries", 0444, dentry, &nr_total_entries); in dma_debug_fs_init()
815 debugfs_create_file("driver_filter", 0644, dentry, NULL, &filter_fops); in dma_debug_fs_init()
816 debugfs_create_file("dump", 0444, dentry, NULL, &dump_fops); in dma_debug_fs_init()
Dmap_benchmark.c25 struct dentry *debugfs;
280 struct dentry *entry; in __map_benchmark_probe()
/kernel/printk/
Dindex.c18 static struct dentry *dfs_index;
184 struct dentry *dfs_root = debugfs_create_dir("printk", NULL); in pi_init()
/kernel/sched/
Ddebug.c299 static struct dentry *debugfs_sched;
303 struct dentry __maybe_unused *numa; in sched_init_debug()
350 static struct dentry *sd_dentry;
378 static void register_sd(struct sched_domain *sd, struct dentry *parent) in register_sd()
418 struct dentry *d_cpu; in update_sched_domain_debugfs()
427 struct dentry *d_sd; in update_sched_domain_debugfs()
/kernel/irq/
Ddebugfs.c10 static struct dentry *irq_dir;
245 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()

12