Home
last modified time | relevance | path

Searched refs:dentry (Results 1 – 25 of 36) 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()
155 static int bpf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) in bpf_mkdir() argument
169 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkdir()
330 static int bpf_mkobj_ops(struct dentry *dentry, umode_t mode, void *raw, in bpf_mkobj_ops() argument
334 struct inode *dir = dentry->d_parent->d_inode; in bpf_mkobj_ops()
343 bpf_dentry_finalize(dentry, inode, dir); in bpf_mkobj_ops()
347 static int bpf_mkprog(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkprog() argument
349 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.c305 static struct dentry *create_buf_file_default_callback(const char *filename, in create_buf_file_default_callback()
306 struct dentry *parent, in create_buf_file_default_callback()
317 static int remove_buf_file_default_callback(struct dentry *dentry) in remove_buf_file_default_callback() argument
410 struct dentry *dentry) in relay_set_buf_dentry() argument
412 buf->dentry = dentry; in relay_set_buf_dentry()
413 d_inode(buf->dentry)->i_size = buf->early_bytes; in relay_set_buf_dentry()
416 static struct dentry *relay_create_buf_file(struct rchan *chan, in relay_create_buf_file()
420 struct dentry *dentry; in relay_create_buf_file() local
429 dentry = chan->cb->create_buf_file(tmpname, chan->parent, in relay_create_buf_file()
432 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()
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.c903 context->pwd.dentry = NULL; in audit_free_names()
1632 if (context->pwd.dentry && context->pwd.mnt) { in audit_log_exit()
1845 static void handle_path(const struct dentry *dentry) in handle_path() argument
1849 const struct dentry *d, *parent; in handle_path()
1859 d = dentry; in handle_path()
1951 if (!context->pwd.dentry) in _audit_getcwd()
1991 const struct dentry *dentry) in audit_copy_fcaps() argument
1996 if (!dentry) in audit_copy_fcaps()
1999 rc = get_vfs_caps_from_disk(dentry, &caps); in audit_copy_fcaps()
2015 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()
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.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.h310 struct dentry *d_max_latency;
350 struct dentry *dir;
351 struct dentry *options;
352 struct dentry *percpu_dir;
353 struct dentry *event_dir;
494 struct dentry *entry;
737 struct dentry *trace_create_file(const char *name,
739 struct dentry *parent,
1134 struct dentry *parent);
1141 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 */
542 struct dentry *top_dir; in init_tracefs()
Dtrace_uprobe.c413 struct inode *comp_inode = d_real_inode(comp->path.dentry); in trace_uprobe_has_same_uprobe()
418 if (comp_inode != d_real_inode(orig->path.dentry) || in trace_uprobe_has_same_uprobe()
477 struct inode *new_inode = d_real_inode(new->path.dentry); in validate_ref_ctr_offset()
480 if (new_inode == d_real_inode(tmp->path.dentry) && in validate_ref_ctr_offset()
593 if (!d_is_reg(path.dentry)) { in trace_uprobe_create()
1062 tu->inode = d_real_inode(tu->path.dentry); in trace_uprobe_enable()
1598 if (!d_is_reg(path.dentry)) { in create_local_trace_uprobe()
Dtrace_events.c751 struct dentry *dir = file->dir; in remove_event_file_dir()
752 struct dentry *child; in remove_event_file_dir()
2050 static struct dentry *
2052 struct trace_event_file *file, struct dentry *parent) in event_subsystem_dir()
2056 struct dentry *entry; in event_subsystem_dir()
2163 event_create_dir(struct dentry *parent, struct trace_event_file *file) in event_create_dir()
2167 struct dentry *d_events; in event_create_dir()
3230 create_event_toplevel_files(struct dentry *parent, struct trace_array *tr) in create_event_toplevel_files()
3232 struct dentry *d_events; in create_event_toplevel_files()
3233 struct dentry *entry; in create_event_toplevel_files()
[all …]
Dtrace_stat.c37 struct dentry *file;
45 static struct dentry *stat_dir;
Dtrace.c1722 struct dentry *d_tracer) in trace_create_maxlat_file()
5738 static void trace_create_eval_file(struct dentry *d_tracer) in trace_create_eval_file()
5745 static inline void trace_create_eval_file(struct dentry *d_tracer) { } in trace_create_eval_file()
8147 static struct dentry *tracing_get_dentry(struct trace_array *tr) in tracing_get_dentry()
8160 static struct dentry *tracing_dentry_percpu(struct trace_array *tr, int cpu) in tracing_dentry_percpu()
8162 struct dentry *d_tracer; in tracing_dentry_percpu()
8179 static struct dentry *
8180 trace_create_cpu_file(const char *name, umode_t mode, struct dentry *parent, in trace_create_cpu_file()
8183 struct dentry *ret = trace_create_file(name, mode, parent, data, fops); in trace_create_cpu_file()
8193 struct dentry *d_percpu = tracing_dentry_percpu(tr, cpu); in tracing_init_tracefs_percpu()
[all …]
Dblktrace.c435 static int blk_remove_buf_file_callback(struct dentry *dentry) in blk_remove_buf_file_callback() argument
437 debugfs_remove(dentry); in blk_remove_buf_file_callback()
442 static struct dentry *blk_create_buf_file_callback(const char *filename, in blk_create_buf_file_callback()
443 struct dentry *parent, in blk_create_buf_file_callback()
483 struct dentry *dir = NULL; in do_blk_trace_setup()
Dtrace_dynevent.c211 struct dentry *entry; in init_dynamic_event()
/kernel/power/
Denergy_model.c31 static struct dentry *rootdir;
33 static void em_debug_create_ps(struct em_perf_state *ps, struct dentry *pd) in em_debug_create_ps()
35 struct dentry *d; in em_debug_create_ps()
68 struct dentry *d; in em_debug_create_pd()
/kernel/dma/
Ddebug.c809 struct dentry *dentry = debugfs_create_dir("dma-api", NULL); in dma_debug_fs_init() local
811 debugfs_create_bool("disabled", 0444, dentry, &global_disable); in dma_debug_fs_init()
812 debugfs_create_u32("error_count", 0444, dentry, &error_count); in dma_debug_fs_init()
813 debugfs_create_u32("all_errors", 0644, dentry, &show_all_errors); in dma_debug_fs_init()
814 debugfs_create_u32("num_errors", 0644, dentry, &show_num_errors); in dma_debug_fs_init()
815 debugfs_create_u32("num_free_entries", 0444, dentry, &num_free_entries); in dma_debug_fs_init()
816 debugfs_create_u32("min_free_entries", 0444, dentry, &min_free_entries); in dma_debug_fs_init()
817 debugfs_create_u32("nr_total_entries", 0444, dentry, &nr_total_entries); in dma_debug_fs_init()
818 debugfs_create_file("driver_filter", 0644, dentry, NULL, &filter_fops); in dma_debug_fs_init()
819 debugfs_create_file("dump", 0444, dentry, NULL, &dump_fops); in dma_debug_fs_init()
Dpool.c38 struct dentry *root; in dma_atomic_pool_debugfs_init()
/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.c703 int cgroupstats_build(struct cgroupstats *stats, struct dentry *dentry) in cgroupstats_build() argument
705 struct kernfs_node *kn = kernfs_node_from_dentry(dentry); in cgroupstats_build()
711 if (dentry->d_sb->s_type != &cgroup_fs_type || !kn || in cgroupstats_build()
/kernel/time/
Dtest_udelay.c24 static struct dentry *udelay_test_debugfs_file;

12