geom_slice.h (bdf2e45a5c5765e16abb90acdfa79d26c561fe9d) | geom_slice.h (02c62349c93f29b881498630c7a0623540255764) |
---|---|
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 --- 55 unchanged lines hidden (view full) --- 64 struct g_slice_hot *hotspot; 65 66 void *softc; 67 g_slice_start_t *start; 68 g_event_t *hot; 69}; 70 71g_dumpconf_t g_slice_dumpconf; | 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 --- 55 unchanged lines hidden (view full) --- 64 struct g_slice_hot *hotspot; 65 66 void *softc; 67 g_slice_start_t *start; 68 g_event_t *hot; 69}; 70 71g_dumpconf_t g_slice_dumpconf; |
72int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...); | 72int g_slice_config(struct g_geom *gp, u_int idx, int how, off_t offset, off_t length, u_int sectorsize, const char *fmt, ...) __printflike(7, 8); |
73void g_slice_spoiled(struct g_consumer *cp); 74void g_slice_orphan(struct g_consumer *cp); 75#define G_SLICE_CONFIG_CHECK 0 76#define G_SLICE_CONFIG_SET 1 77#define G_SLICE_CONFIG_FORCE 2 78struct g_geom * g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_consumer **cpp, void *extrap, int extra, g_slice_start_t *start); 79 80int g_slice_conf_hot(struct g_geom *gp, u_int idx, off_t offset, off_t length, int ract, int dact, int wact); 81#define G_SLICE_HOT_ALLOW 1 82#define G_SLICE_HOT_DENY 2 83#define G_SLICE_HOT_START 4 84#define G_SLICE_HOT_CALL 8 85 86int g_slice_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp); 87 88void g_slice_finish_hot(struct bio *bp); 89 90#endif /* _GEOM_GEOM_SLICE_H_ */ | 73void g_slice_spoiled(struct g_consumer *cp); 74void g_slice_orphan(struct g_consumer *cp); 75#define G_SLICE_CONFIG_CHECK 0 76#define G_SLICE_CONFIG_SET 1 77#define G_SLICE_CONFIG_FORCE 2 78struct g_geom * g_slice_new(struct g_class *mp, u_int slices, struct g_provider *pp, struct g_consumer **cpp, void *extrap, int extra, g_slice_start_t *start); 79 80int g_slice_conf_hot(struct g_geom *gp, u_int idx, off_t offset, off_t length, int ract, int dact, int wact); 81#define G_SLICE_HOT_ALLOW 1 82#define G_SLICE_HOT_DENY 2 83#define G_SLICE_HOT_START 4 84#define G_SLICE_HOT_CALL 8 85 86int g_slice_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp); 87 88void g_slice_finish_hot(struct bio *bp); 89 90#endif /* _GEOM_GEOM_SLICE_H_ */ |