Lines Matching refs:bpf_sub_dir
617 static int bpf_gen_global(const char *bpf_sub_dir) in bpf_gen_global() argument
623 bpf_sub_dir, BPF_DIR_GLOBALS); in bpf_gen_global()
637 char bpf_sub_dir[PATH_MAX]; in bpf_gen_master() local
640 snprintf(bpf_sub_dir, sizeof(bpf_sub_dir), "%s%s/", base, name); in bpf_gen_master()
642 ret = mkdir(bpf_sub_dir, S_IRWXU); in bpf_gen_master()
644 fprintf(stderr, "mkdir %s failed: %s\n", bpf_sub_dir, in bpf_gen_master()
649 return bpf_gen_global(bpf_sub_dir); in bpf_gen_master()
679 char bpf_sub_dir[PATH_MAX]; in bpf_gen_slave() local
684 snprintf(bpf_sub_dir, sizeof(bpf_sub_dir), "%s%s", base, name); in bpf_gen_slave()
686 ret = symlink(bpf_lnk_dir, bpf_sub_dir); in bpf_gen_slave()
691 bpf_sub_dir, strerror(errno)); in bpf_gen_slave()
695 return bpf_slave_via_bind_mnt(bpf_sub_dir, in bpf_gen_slave()
699 ret = lstat(bpf_sub_dir, &sb); in bpf_gen_slave()
702 bpf_sub_dir, strerror(errno)); in bpf_gen_slave()
707 return bpf_gen_global(bpf_sub_dir); in bpf_gen_slave()