conf.h (170152) | conf.h (171181) |
---|---|
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 170152 2007-05-31 11:51:53Z kib $ | 37 * $FreeBSD: head/sys/sys/conf.h 171181 2007-07-03 17:42:37Z kib $ |
38 */ 39 40#ifndef _SYS_CONF_H_ 41#define _SYS_CONF_H_ 42 43#ifdef _KERNEL 44#include <sys/eventhandler.h> 45#else --- 194 unchanged lines hidden (view full) --- 240void clone_setup(struct clonedevs **cdp); 241void clone_cleanup(struct clonedevs **); 242#define CLONE_UNITMASK 0xfffff 243#define CLONE_FLAG0 (CLONE_UNITMASK + 1) 244int clone_create(struct clonedevs **, struct cdevsw *, int *unit, struct cdev **dev, int extra); 245 246int count_dev(struct cdev *_dev); 247void destroy_dev(struct cdev *_dev); | 38 */ 39 40#ifndef _SYS_CONF_H_ 41#define _SYS_CONF_H_ 42 43#ifdef _KERNEL 44#include <sys/eventhandler.h> 45#else --- 194 unchanged lines hidden (view full) --- 240void clone_setup(struct clonedevs **cdp); 241void clone_cleanup(struct clonedevs **); 242#define CLONE_UNITMASK 0xfffff 243#define CLONE_FLAG0 (CLONE_UNITMASK + 1) 244int clone_create(struct clonedevs **, struct cdevsw *, int *unit, struct cdev **dev, int extra); 245 246int count_dev(struct cdev *_dev); 247void destroy_dev(struct cdev *_dev); |
248int destroy_dev_sched(struct cdev *dev); 249int destroy_dev_sched_cb(struct cdev *dev, void (*cb)(void *), void *arg); 250void destroy_dev_drain(struct cdevsw *csw); 251void drain_dev_clone_events(void); |
|
248struct cdevsw *dev_refthread(struct cdev *_dev); 249struct cdevsw *devvn_refthread(struct vnode *vp, struct cdev **devp); 250void dev_relthread(struct cdev *_dev); 251void dev_depends(struct cdev *_pdev, struct cdev *_cdev); 252void dev_ref(struct cdev *dev); 253void dev_refl(struct cdev *dev); 254void dev_rel(struct cdev *dev); 255void dev_strategy(struct cdev *dev, struct buf *bp); 256struct cdev *make_dev(struct cdevsw *_devsw, int _minor, uid_t _uid, gid_t _gid, 257 int _perms, const char *_fmt, ...) __printflike(6, 7); 258struct cdev *make_dev_cred(struct cdevsw *_devsw, int _minor, 259 struct ucred *_cr, uid_t _uid, gid_t _gid, int _perms, 260 const char *_fmt, ...) __printflike(7, 8); | 252struct cdevsw *dev_refthread(struct cdev *_dev); 253struct cdevsw *devvn_refthread(struct vnode *vp, struct cdev **devp); 254void dev_relthread(struct cdev *_dev); 255void dev_depends(struct cdev *_pdev, struct cdev *_cdev); 256void dev_ref(struct cdev *dev); 257void dev_refl(struct cdev *dev); 258void dev_rel(struct cdev *dev); 259void dev_strategy(struct cdev *dev, struct buf *bp); 260struct cdev *make_dev(struct cdevsw *_devsw, int _minor, uid_t _uid, gid_t _gid, 261 int _perms, const char *_fmt, ...) __printflike(6, 7); 262struct cdev *make_dev_cred(struct cdevsw *_devsw, int _minor, 263 struct ucred *_cr, uid_t _uid, gid_t _gid, int _perms, 264 const char *_fmt, ...) __printflike(7, 8); |
265#define MAKEDEV_REF 0x1 266#define MAKEDEV_WHTOUT 0x2 267struct cdev *make_dev_credf(int _flags, 268 struct cdevsw *_devsw, int _minornr, 269 struct ucred *_cr, uid_t _uid, gid_t _gid, int _mode, 270 const char *_fmt, ...) __printflike(8, 9); |
|
261struct cdev *make_dev_alias(struct cdev *_pdev, const char *_fmt, ...) __printflike(2, 3); 262int dev2unit(struct cdev *_dev); 263void dev_lock(void); 264void dev_unlock(void); 265int unit2minor(int _unit); 266u_int minor2unit(u_int _minor); 267void setconf(void); 268 --- 43 unchanged lines hidden --- | 271struct cdev *make_dev_alias(struct cdev *_pdev, const char *_fmt, ...) __printflike(2, 3); 272int dev2unit(struct cdev *_dev); 273void dev_lock(void); 274void dev_unlock(void); 275int unit2minor(int _unit); 276u_int minor2unit(u_int _minor); 277void setconf(void); 278 --- 43 unchanged lines hidden --- |