geom_slice.h (e805e8f0e8f9f762bfb5bffd72380a1b101b1a8b) geom_slice.h (b1876192f015b1cf392b52b82b124265fc9683a7)
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

--- 36 unchanged lines hidden (view full) ---

45
46struct g_slicer {
47 int nslice;
48 struct g_slice *slices;
49 void *softc;
50 g_slice_start_t *start;
51};
52
1/*-
2 * Copyright (c) 2002 Poul-Henning Kamp
3 * Copyright (c) 2002 Networks Associates Technology, Inc.
4 * All rights reserved.
5 *
6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp
7 * and NAI Labs, the Security Research Division of Network Associates, Inc.
8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the

--- 36 unchanged lines hidden (view full) ---

45
46struct g_slicer {
47 int nslice;
48 struct g_slice *slices;
49 void *softc;
50 g_slice_start_t *start;
51};
52
53void g_slice_orphan(struct g_consumer *cp, struct thread *tp);
53g_orphan_t g_slice_orphan;
54struct g_slicer * g_slice_init(unsigned nslice, unsigned scsize);
55int g_slice_access(struct g_provider *pp, int dr, int dw, int de);
56void g_slice_start(struct bio *bp);
57void g_slice_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp);
58struct g_provider * g_slice_addslice(struct g_geom *gp, int index, off_t offset, off_t length, char *fmt, ...);
59struct g_geom * g_slice_new(struct g_class *mp, int slices, struct g_provider *pp, struct g_consumer **cpp, void *extrap, int extra, g_slice_start_t *start);
60
54struct g_slicer * g_slice_init(unsigned nslice, unsigned scsize);
55int g_slice_access(struct g_provider *pp, int dr, int dw, int de);
56void g_slice_start(struct bio *bp);
57void g_slice_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_consumer *cp __unused, struct g_provider *pp);
58struct g_provider * g_slice_addslice(struct g_geom *gp, int index, off_t offset, off_t length, char *fmt, ...);
59struct g_geom * g_slice_new(struct g_class *mp, int slices, struct g_provider *pp, struct g_consumer **cpp, void *extrap, int extra, g_slice_start_t *start);
60