• Home
  • Raw
  • Download

Lines Matching refs:dentry

145 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()
354 static int bpf_mkmap(struct dentry *dentry, umode_t mode, void *arg) in bpf_mkmap() argument
358 return bpf_mkobj_ops(dentry, mode, arg, &bpf_map_iops, in bpf_mkmap()
363 static int bpf_mklink(struct dentry *dentry, umode_t mode, void *arg) in bpf_mklink() argument
367 return bpf_mkobj_ops(dentry, mode, arg, &bpf_link_iops, in bpf_mklink()
372 static struct dentry *
373 bpf_lookup(struct inode *dir, struct dentry *dentry, unsigned flags) in bpf_lookup() argument
379 strchr(dentry->d_name.name, '.')) in bpf_lookup()
382 return simple_lookup(dir, dentry, flags); in bpf_lookup()
386 struct dentry *dentry, const char *target) in bpf_symlink() argument
403 bpf_dentry_finalize(dentry, inode, dir); in bpf_symlink()
418 static int bpf_iter_link_pin_kernel(struct dentry *parent, in bpf_iter_link_pin_kernel()
422 struct dentry *dentry; in bpf_iter_link_pin_kernel() local
426 dentry = lookup_one_len(name, parent, strlen(name)); in bpf_iter_link_pin_kernel()
427 if (IS_ERR(dentry)) { in bpf_iter_link_pin_kernel()
429 return PTR_ERR(dentry); in bpf_iter_link_pin_kernel()
431 ret = bpf_mkobj_ops(dentry, mode, link, &bpf_link_iops, in bpf_iter_link_pin_kernel()
433 dput(dentry); in bpf_iter_link_pin_kernel()
441 struct dentry *dentry; in bpf_obj_do_pin() local
447 dentry = user_path_create(AT_FDCWD, pathname, &path, 0); in bpf_obj_do_pin()
448 if (IS_ERR(dentry)) in bpf_obj_do_pin()
449 return PTR_ERR(dentry); in bpf_obj_do_pin()
453 ret = security_path_mknod(&path, dentry, mode, 0); in bpf_obj_do_pin()
457 dir = d_inode(path.dentry); in bpf_obj_do_pin()
465 ret = vfs_mkobj(dentry, mode, bpf_mkprog, raw); in bpf_obj_do_pin()
468 ret = vfs_mkobj(dentry, mode, bpf_mkmap, raw); in bpf_obj_do_pin()
471 ret = vfs_mkobj(dentry, mode, bpf_mklink, raw); in bpf_obj_do_pin()
477 done_path_create(&path, dentry); in bpf_obj_do_pin()
510 inode = d_backing_inode(path.dentry); in bpf_obj_do_get()
593 prog = __get_prog_inode(d_backing_inode(path.dentry), type); in bpf_prog_get_type_path()
604 static int bpf_show_options(struct seq_file *m, struct dentry *root) in bpf_show_options()
710 static int populate_bpffs(struct dentry *parent) in populate_bpffs()