conf.h (135368) | conf.h (135600) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)conf.h 8.5 (Berkeley) 1/9/95 | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 2000 5 * Poul-Henning Kamp. All rights reserved. 6 * (c) UNIX System Laboratories, Inc. 7 * All or some portions of this file are derived from material licensed 8 * to the University of California by American Telephone and Telegraph --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)conf.h 8.5 (Berkeley) 1/9/95 |
37 * $FreeBSD: head/sys/sys/conf.h 135368 2004-09-17 08:34:43Z phk $ | 37 * $FreeBSD: head/sys/sys/conf.h 135600 2004-09-23 07:17:41Z phk $ |
38 */ 39 40#ifndef _SYS_CONF_H_ 41#define _SYS_CONF_H_ 42 43#ifdef _KERNEL 44#include <sys/eventhandler.h> 45 --- 171 unchanged lines hidden (view full) --- 217 dumper_t *d_dump; 218 d_kqfilter_t *d_kqfilter; 219 d_spare1_t *d_spare1; 220 d_spare2_t *d_spare2; 221 222 /* These fields should not be messed with by drivers */ 223 LIST_ENTRY(cdevsw) d_list; 224 LIST_HEAD(, cdev) d_devs; | 38 */ 39 40#ifndef _SYS_CONF_H_ 41#define _SYS_CONF_H_ 42 43#ifdef _KERNEL 44#include <sys/eventhandler.h> 45 --- 171 unchanged lines hidden (view full) --- 217 dumper_t *d_dump; 218 d_kqfilter_t *d_kqfilter; 219 d_spare1_t *d_spare1; 220 d_spare2_t *d_spare2; 221 222 /* These fields should not be messed with by drivers */ 223 LIST_ENTRY(cdevsw) d_list; 224 LIST_HEAD(, cdev) d_devs; |
225 int d_refcount; | 225 int d_spare3; |
226}; 227 228#endif /* _KERNEL */ 229 230#ifdef _KERNEL 231 232#define NUMCDEVSW 256 233 --- 24 unchanged lines hidden (view full) --- 258void clone_cleanup(struct clonedevs **); 259#define CLONE_UNITMASK 0xfffff 260#define CLONE_FLAG0 (CLONE_UNITMASK + 1) 261int clone_create(struct clonedevs **, struct cdevsw *, int *unit, struct cdev **dev, u_int extra); 262 263int count_dev(struct cdev *_dev); 264void destroy_dev(struct cdev *_dev); 265struct cdevsw *devsw(struct cdev *_dev); | 226}; 227 228#endif /* _KERNEL */ 229 230#ifdef _KERNEL 231 232#define NUMCDEVSW 256 233 --- 24 unchanged lines hidden (view full) --- 258void clone_cleanup(struct clonedevs **); 259#define CLONE_UNITMASK 0xfffff 260#define CLONE_FLAG0 (CLONE_UNITMASK + 1) 261int clone_create(struct clonedevs **, struct cdevsw *, int *unit, struct cdev **dev, u_int extra); 262 263int count_dev(struct cdev *_dev); 264void destroy_dev(struct cdev *_dev); 265struct cdevsw *devsw(struct cdev *_dev); |
266void cdevsw_ref(struct cdevsw *); 267void cdevsw_rel(struct cdevsw *); | |
268const char *devtoname(struct cdev *_dev); 269int dev_named(struct cdev *_pdev, const char *_name); 270void dev_depends(struct cdev *_pdev, struct cdev *_cdev); 271void dev_ref(struct cdev *dev); 272void dev_rel(struct cdev *dev); 273void dev_strategy(struct buf *bp); 274struct cdev *makebdev(int _maj, int _min); 275struct cdev *make_dev(struct cdevsw *_devsw, int _minor, uid_t _uid, gid_t _gid, 276 int _perms, const char *_fmt, ...) __printflike(6, 7); 277struct cdev *make_dev_alias(struct cdev *_pdev, const char *_fmt, ...) __printflike(2, 3); 278int dev2unit(struct cdev *_dev); | 266const char *devtoname(struct cdev *_dev); 267int dev_named(struct cdev *_pdev, const char *_name); 268void dev_depends(struct cdev *_pdev, struct cdev *_cdev); 269void dev_ref(struct cdev *dev); 270void dev_rel(struct cdev *dev); 271void dev_strategy(struct buf *bp); 272struct cdev *makebdev(int _maj, int _min); 273struct cdev *make_dev(struct cdevsw *_devsw, int _minor, uid_t _uid, gid_t _gid, 274 int _perms, const char *_fmt, ...) __printflike(6, 7); 275struct cdev *make_dev_alias(struct cdev *_pdev, const char *_fmt, ...) __printflike(2, 3); 276int dev2unit(struct cdev *_dev); |
277void dev_lock(void); 278void dev_unlock(void); |
|
279int unit2minor(int _unit); 280void setconf(void); 281struct cdev *getdiskbyname(char *_name); 282 283void devfs_create(struct cdev *dev); 284void devfs_destroy(struct cdev *dev); 285 286#define UID_ROOT 0 --- 41 unchanged lines hidden --- | 279int unit2minor(int _unit); 280void setconf(void); 281struct cdev *getdiskbyname(char *_name); 282 283void devfs_create(struct cdev *dev); 284void devfs_destroy(struct cdev *dev); 285 286#define UID_ROOT 0 --- 41 unchanged lines hidden --- |