Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/geom.h
Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | |||||
#define DECLARE_GEOM_CLASS(class, name) \ | #define DECLARE_GEOM_CLASS(class, name) \ | ||||
static moduledata_t name##_mod = { \ | static moduledata_t name##_mod = { \ | ||||
#name, g_modevent, &class \ | #name, g_modevent, &class \ | ||||
}; \ | }; \ | ||||
DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_SECOND); | DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_SECOND); | ||||
int g_is_geom_thread(struct thread *td); | int g_is_geom_thread(struct thread *td); | ||||
#ifndef _PATH_DEV | |||||
#define _PATH_DEV "/dev/" | |||||
#endif | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
/* geom_ctl.c */ | /* geom_ctl.c */ | ||||
int gctl_set_param(struct gctl_req *req, const char *param, void const *ptr, int len); | int gctl_set_param(struct gctl_req *req, const char *param, void const *ptr, int len); | ||||
void gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr, int len); | void gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr, int len); | ||||
void *gctl_get_param(struct gctl_req *req, const char *param, int *len); | void *gctl_get_param(struct gctl_req *req, const char *param, int *len); | ||||
char const *gctl_get_asciiparam(struct gctl_req *req, const char *param); | char const *gctl_get_asciiparam(struct gctl_req *req, const char *param); | ||||
void *gctl_get_paraml(struct gctl_req *req, const char *param, int len); | void *gctl_get_paraml(struct gctl_req *req, const char *param, int len); | ||||
void *gctl_get_paraml_opt(struct gctl_req *req, const char *param, int len); | void *gctl_get_paraml_opt(struct gctl_req *req, const char *param, int len); | ||||
int gctl_error(struct gctl_req *req, const char *fmt, ...) __printflike(2, 3); | int gctl_error(struct gctl_req *req, const char *fmt, ...) __printflike(2, 3); | ||||
struct g_class *gctl_get_class(struct gctl_req *req, char const *arg); | struct g_class *gctl_get_class(struct gctl_req *req, char const *arg); | ||||
struct g_geom *gctl_get_geom(struct gctl_req *req, struct g_class *mpr, char const *arg); | struct g_geom *gctl_get_geom(struct gctl_req *req, struct g_class *mpr, char const *arg); | ||||
struct g_provider *gctl_get_provider(struct gctl_req *req, char const *arg); | struct g_provider *gctl_get_provider(struct gctl_req *req, char const *arg); | ||||
#endif /* _GEOM_GEOM_H_ */ | #endif /* _GEOM_GEOM_H_ */ |