Deleted Added
full compact
conf.h (65051) conf.h (65374)
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

--- 24 unchanged lines hidden (view full) ---

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)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

--- 24 unchanged lines hidden (view full) ---

33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 * SUCH DAMAGE.
39 *
40 * @(#)conf.h 8.5 (Berkeley) 1/9/95
41 * $FreeBSD: head/sys/sys/conf.h 65051 2000-08-24 15:36:55Z phk $
41 * $FreeBSD: head/sys/sys/conf.h 65374 2000-09-02 19:17:34Z phk $
42 */
43
44#ifndef _SYS_CONF_H_
45#define _SYS_CONF_H_
46
47#include <sys/queue.h>
42 */
43
44#ifndef _SYS_CONF_H_
45#define _SYS_CONF_H_
46
47#include <sys/queue.h>
48#include <sys/eventhandler.h>
48
49#define SPECNAMELEN 15
50
51struct tty;
52struct disk;
53struct vnode;
54
55struct specinfo {

--- 74 unchanged lines hidden (view full) ---

130typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
131typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
132typedef int l_ioctl_t __P((struct tty *tp, u_long cmd, caddr_t data,
133 int flag, struct proc *p));
134typedef int l_rint_t __P((int c, struct tty *tp));
135typedef int l_start_t __P((struct tty *tp));
136typedef int l_modem_t __P((struct tty *tp, int flag));
137
49
50#define SPECNAMELEN 15
51
52struct tty;
53struct disk;
54struct vnode;
55
56struct specinfo {

--- 74 unchanged lines hidden (view full) ---

131typedef int l_read_t __P((struct tty *tp, struct uio *uio, int flag));
132typedef int l_write_t __P((struct tty *tp, struct uio *uio, int flag));
133typedef int l_ioctl_t __P((struct tty *tp, u_long cmd, caddr_t data,
134 int flag, struct proc *p));
135typedef int l_rint_t __P((int c, struct tty *tp));
136typedef int l_start_t __P((struct tty *tp));
137typedef int l_modem_t __P((struct tty *tp, int flag));
138
138/* This is type of the function DEVFS uses to hook into the kernel with */
139typedef void devfs_create_t __P((dev_t dev));
140typedef void devfs_remove_t __P((dev_t dev));
141
142/*
143 * XXX: The dummy argument can be used to do what strategy1() never
144 * did anywhere: Create a per device flag to lock the device during
145 * label/slice surgery, all calls with a dummy == 0 gets stalled on
146 * a queue somewhere, whereas dummy == 1 are let through. Once out
147 * of surgery, reset the flag and restart all the stuff on the stall
148 * queue.
149 */

--- 144 unchanged lines hidden (view full) ---

294int iszerodev __P((dev_t dev));
295dev_t makebdev __P((int maj, int min));
296dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
297dev_t make_dev_alias __P((dev_t pdev, char *fmt, ...)) __printflike(2, 3);
298int lminor __P((dev_t dev));
299void setconf __P((void));
300dev_t getdiskbyname(char *name);
301
139/*
140 * XXX: The dummy argument can be used to do what strategy1() never
141 * did anywhere: Create a per device flag to lock the device during
142 * label/slice surgery, all calls with a dummy == 0 gets stalled on
143 * a queue somewhere, whereas dummy == 1 are let through. Once out
144 * of surgery, reset the flag and restart all the stuff on the stall
145 * queue.
146 */

--- 144 unchanged lines hidden (view full) ---

291int iszerodev __P((dev_t dev));
292dev_t makebdev __P((int maj, int min));
293dev_t make_dev __P((struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char *fmt, ...)) __printflike(6, 7);
294dev_t make_dev_alias __P((dev_t pdev, char *fmt, ...)) __printflike(2, 3);
295int lminor __P((dev_t dev));
296void setconf __P((void));
297dev_t getdiskbyname(char *name);
298
299/* This is type of the function DEVFS uses to hook into the kernel with */
300typedef void devfs_create_t __P((dev_t dev));
301typedef void devfs_destroy_t __P((dev_t dev));
302
302extern devfs_create_t *devfs_create_hook;
303extern devfs_create_t *devfs_create_hook;
304extern devfs_destroy_t *devfs_destroy_hook;
305extern int devfs_present;
303
304/*
305 * XXX: This included for when DEVFS resurfaces
306 */
307
308#define UID_ROOT 0
309#define UID_BIN 3
310#define UID_UUCP 66
311
312#define GID_WHEEL 0
313#define GID_KMEM 2
314#define GID_OPERATOR 5
315#define GID_BIN 7
316#define GID_GAMES 13
317#define GID_DIALER 68
318
306
307/*
308 * XXX: This included for when DEVFS resurfaces
309 */
310
311#define UID_ROOT 0
312#define UID_BIN 3
313#define UID_UUCP 66
314
315#define GID_WHEEL 0
316#define GID_KMEM 2
317#define GID_OPERATOR 5
318#define GID_BIN 7
319#define GID_GAMES 13
320#define GID_DIALER 68
321
322typedef void (*dev_clone_fn) __P((void *arg, char *name, int namelen, dev_t *result));
323
324int dev_stdclone __P((char *name, char **namep, char *stem, int *unit));
325EVENTHANDLER_DECLARE(dev_clone, dev_clone_fn);
319#endif /* _KERNEL */
320
321#endif /* !_SYS_CONF_H_ */
326#endif /* _KERNEL */
327
328#endif /* !_SYS_CONF_H_ */