libgeom.h (2892a228adfb334ae2ad66187d5376d9c17878c2) | libgeom.h (4b8938c1d5c3d77402e85ec9017773bd52aa6dbb) |
---|---|
1/*- 2 * Copyright (c) 2003 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * $FreeBSD$ 30 */ 31#ifndef _LIBGEOM_H_ 32#define _LIBGEOM_H_ 33 34#include <sys/queue.h> 35#include <sys/time.h> 36 | 1/*- 2 * Copyright (c) 2003 Poul-Henning Kamp 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 20 unchanged lines hidden (view full) --- 29 * $FreeBSD$ 30 */ 31#ifndef _LIBGEOM_H_ 32#define _LIBGEOM_H_ 33 34#include <sys/queue.h> 35#include <sys/time.h> 36 |
37#include <geom/geom_ctl.h> 38 |
|
37void geom_stats_close(void); 38void geom_stats_resync(void); 39int geom_stats_open(void); 40void *geom_stats_snapshot_get(void); 41void geom_stats_snapshot_free(void *arg); 42void geom_stats_snapshot_timestamp(void *arg, struct timespec *tp); 43void geom_stats_snapshot_reset(void *arg); 44struct devstat *geom_stats_snapshot_next(void *arg); --- 75 unchanged lines hidden (view full) --- 120 struct gconf config; 121}; 122 123struct gident * geom_lookupid(struct gmesh *gmp, const void *id); 124int geom_xml2tree(struct gmesh *gmp, char *p); 125int geom_gettree(struct gmesh *gmp); 126void geom_deletetree(struct gmesh *gmp); 127 | 39void geom_stats_close(void); 40void geom_stats_resync(void); 41int geom_stats_open(void); 42void *geom_stats_snapshot_get(void); 43void geom_stats_snapshot_free(void *arg); 44void geom_stats_snapshot_timestamp(void *arg, struct timespec *tp); 45void geom_stats_snapshot_reset(void *arg); 46struct devstat *geom_stats_snapshot_next(void *arg); --- 75 unchanged lines hidden (view full) --- 122 struct gconf config; 123}; 124 125struct gident * geom_lookupid(struct gmesh *gmp, const void *id); 126int geom_xml2tree(struct gmesh *gmp, char *p); 127int geom_gettree(struct gmesh *gmp); 128void geom_deletetree(struct gmesh *gmp); 129 |
130/* geom_ctl.c */ 131 132struct geom_ctl_req; 133 134#ifdef _STDIO_H_ /* limit #include pollution */ 135void geom_ctl_dump(struct geom_ctl_req *req, FILE *f); 136#endif 137void geom_ctl_free(struct geom_ctl_req *req); 138struct geom_ctl_req *geom_ctl_get_handle(enum geom_ctl_request req); 139const char *geom_ctl_issue(struct geom_ctl_req *req); 140void geom_ctl_set_class_by_id(struct geom_ctl_req *req, void *id); 141void geom_ctl_set_class_by_name(struct geom_ctl_req *req, const char *name); 142void geom_ctl_set_consumer_by_id(struct geom_ctl_req *req, void *id); 143void geom_ctl_set_consumer_by_name(struct geom_ctl_req *req, const char *name); 144void geom_ctl_set_geom_by_id(struct geom_ctl_req *req, void *id); 145void geom_ctl_set_geom_by_name(struct geom_ctl_req *req, const char *name); 146void geom_ctl_set_meta(struct geom_ctl_req *req, off_t offset, u_int len, void* val); 147void geom_ctl_set_param(struct geom_ctl_req *req, const char *name, int len, void* val); 148void geom_ctl_set_provider_by_id(struct geom_ctl_req *req, void *id); 149void geom_ctl_set_provider_by_name(struct geom_ctl_req *req, const char *name); 150 |
|
128#endif /* _LIBGEOM_H_ */ | 151#endif /* _LIBGEOM_H_ */ |