conf.h (150148) | conf.h (150342) |
---|---|
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 150148 2005-09-15 08:01:57Z phk $ | 37 * $FreeBSD: head/sys/sys/conf.h 150342 2005-09-19 19:56:48Z phk $ |
38 */ 39 40#ifndef _SYS_CONF_H_ 41#define _SYS_CONF_H_ 42 43#ifdef _KERNEL 44#include <sys/eventhandler.h> 45#else 46#include <sys/queue.h> 47#endif 48 49struct tty; 50struct snapdata; 51struct devfs_dirent; 52struct cdevsw; 53 54struct cdev { | 38 */ 39 40#ifndef _SYS_CONF_H_ 41#define _SYS_CONF_H_ 42 43#ifdef _KERNEL 44#include <sys/eventhandler.h> 45#else 46#include <sys/queue.h> 47#endif 48 49struct tty; 50struct snapdata; 51struct devfs_dirent; 52struct cdevsw; 53 54struct cdev { |
55 struct cdev_priv *si_priv; |
|
55 u_int si_flags; 56#define SI_ALIAS 0x0002 /* carrier of alias name */ 57#define SI_NAMED 0x0004 /* make_dev{_alias} has been called */ 58#define SI_CHEAPCLONE 0x0008 /* can be removed_dev'ed when vnode reclaims */ 59#define SI_CHILD 0x0010 /* child of another struct cdev **/ 60#define SI_DEVOPEN 0x0020 /* opened by device */ 61#define SI_CONSOPEN 0x0040 /* opened by console */ 62#define SI_DUMPDEV 0x0080 /* is kernel dumpdev */ --- 5 unchanged lines hidden (view full) --- 68 uid_t si_uid; 69 gid_t si_gid; 70 mode_t si_mode; 71 struct ucred *si_cred; /* cached clone-time credential */ 72 u_int si_drv0; 73 int si_refcount; 74 LIST_ENTRY(cdev) si_list; 75 LIST_ENTRY(cdev) si_clone; | 56 u_int si_flags; 57#define SI_ALIAS 0x0002 /* carrier of alias name */ 58#define SI_NAMED 0x0004 /* make_dev{_alias} has been called */ 59#define SI_CHEAPCLONE 0x0008 /* can be removed_dev'ed when vnode reclaims */ 60#define SI_CHILD 0x0010 /* child of another struct cdev **/ 61#define SI_DEVOPEN 0x0020 /* opened by device */ 62#define SI_CONSOPEN 0x0040 /* opened by console */ 63#define SI_DUMPDEV 0x0080 /* is kernel dumpdev */ --- 5 unchanged lines hidden (view full) --- 69 uid_t si_uid; 70 gid_t si_gid; 71 mode_t si_mode; 72 struct ucred *si_cred; /* cached clone-time credential */ 73 u_int si_drv0; 74 int si_refcount; 75 LIST_ENTRY(cdev) si_list; 76 LIST_ENTRY(cdev) si_clone; |
76 LIST_HEAD(,devfs_dirent)si_alist; | |
77 LIST_HEAD(, cdev) si_children; 78 LIST_ENTRY(cdev) si_siblings; 79 struct cdev *si_parent; | 77 LIST_HEAD(, cdev) si_children; 78 LIST_ENTRY(cdev) si_siblings; 79 struct cdev *si_parent; |
80 u_int si_inode; | |
81 char *si_name; 82 void *si_drv1, *si_drv2; 83 struct cdevsw *si_devsw; 84 int si_iosize_max; /* maximum I/O size (for physio &al) */ 85 u_long si_usecount; 86 u_long si_threadcount; 87 union { 88 struct tty *__sit_tty; --- 222 unchanged lines hidden --- | 80 char *si_name; 81 void *si_drv1, *si_drv2; 82 struct cdevsw *si_devsw; 83 int si_iosize_max; /* maximum I/O size (for physio &al) */ 84 u_long si_usecount; 85 u_long si_threadcount; 86 union { 87 struct tty *__sit_tty; --- 222 unchanged lines hidden --- |