Home
last modified time | relevance | path

Searched refs:bfs (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/bootfs/
H A Dbootfs_vfsops.c68 bootfs_t *bfs; in bootfs_mount() local
96 bfs = kmem_zalloc(sizeof (bootfs_t), KM_NOSLEEP_LAZY); in bootfs_mount()
97 if (bfs == NULL) in bootfs_mount()
103 kmem_free(bfs, sizeof (bfs)); in bootfs_mount()
107 bfs->bfs_minor = id_alloc(bootfs_idspace); in bootfs_mount()
108 bfs->bfs_kstat = kstat_create_zone("bootfs", bfs->bfs_minor, "bootfs", in bootfs_mount()
112 if (bfs->bfs_kstat == NULL) { in bootfs_mount()
113 id_free(bootfs_idspace, bfs->bfs_minor); in bootfs_mount()
115 kmem_free(bfs, sizeof (bfs)); in bootfs_mount()
118 bfs->bfs_kstat->ks_data = &bfs->bfs_stat; in bootfs_mount()
[all …]
H A Dbootfs_construct.c110 bootfs_node_init(bootfs_t *bfs, bootfs_node_t *bnp, const struct vattr *vap, in bootfs_node_init() argument
119 bnp->bvn_vnp->v_vfsp = bfs->bfs_vfsp; in bootfs_node_init()
139 bnp->bvn_attr.va_fsid = makedevice(bootfs_major, bfs->bfs_minor); in bootfs_node_init()
140 bnp->bvn_attr.va_nodeid = bfs->bfs_ninode; in bootfs_node_init()
142 bfs->bfs_ninode++; in bootfs_node_init()
143 list_insert_tail(&bfs->bfs_nodes, bnp); in bootfs_node_init()
147 bootfs_mkroot(bootfs_t *bfs) in bootfs_mkroot() argument
152 bootfs_node_init(bfs, bnp, &bootfs_vattr_dir, "/", 1); in bootfs_mkroot()
155 bfs->bfs_rootvn = bnp; in bootfs_mkroot()
156 bfs->bfs_stat.bfss_ndirs.value.ui32++; in bootfs_mkroot()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dtftpsubs.c82 } bfs[2]; variable
111 bfs[0].counter = BF_ALLOC; /* pass out the first buffer */ in rw_init()
113 bfs[1].counter = BF_FREE; in rw_init()
115 return (&bfs[0].buf.tb_hdr); in rw_init()
128 bfs[current].counter = BF_FREE; /* free old one */ in readit()
131 b = &bfs[current]; /* look at new buffer */ in readit()
151 b = &bfs[nextone]; /* look at "next" buffer */ in read_ahead()
195 bfs[current].counter = ct; /* set size of data to write */ in writeit()
197 if (bfs[current].counter != BF_FREE) /* if not free */ in writeit()
200 bfs[current].counter = BF_ALLOC; /* mark as alloc'd */ in writeit()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/optim/
H A Dbitfield-init-zero.c27 struct bfs { struct
34 struct bfs bfsu_init(unsigned int a) in bfsu_init() argument
36 struct bfs bf = { .f = a, }; in bfsu_init()
40 struct bfs bfss_init(int a) in bfss_init()
42 struct bfs bf = { .f = a, }; in bfss_init()
48 struct bfs bf = { }; in bfs_get0()
H A Dbitfield-size.c12 struct bfs { struct
17 signed int get__bfs_a(struct bfs bf) { return bf.a; } in get__bfs_a() argument
18 signed int get__bfs_b(struct bfs bf) { return bf.b; } in get__bfs_b()
19 signed int get_pbfs_a(struct bfs *bf) { return bf->a; } in get_pbfs_a()
20 signed int get_pbfs_b(struct bfs *bf) { return bf->b; } in get_pbfs_b()
H A Dand-or-bfs.c6 int bfs(struct s s, int a) in bfs() function
/illumos-gate/usr/src/tools/smatch/src/validation/linear/
H A Dcompound-literal01.c1 struct bfs { struct
8 struct bfs bf = { .a = 1, .b = 2 }; in foo() argument
9 return (struct bfs[]){bf}[0].b; in foo()
H A Dcompound-literal02.c1 struct bfs { struct
8 struct bfs bf = { .a = 1, .b = 4 }; in bar() argument
9 return (struct bfs[]){bf, { .a = 3, .b = 6}}[1].b; in bar()
H A Dcompound-literal00.c1 struct bfs { struct
8 return (struct bfs){ .a = 1, .b = 2}.b; in foo() argument
/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_cmd.c240 const char *bfs; in update_bootpath() local
243 if ((bfs = find_bootprop(str, BPROP_ZFSBOOTFS)) == NULL || in update_bootpath()
247 n = bfs - str; in update_bootpath()
252 bootpath, bfs) >= strsz - n) in update_bootpath()