The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/snoop.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 1995 Ugen J.S.Antsilevich
    3  *
    4  * Redistribution and use in source forms, with and without modification,
    5  * are permitted provided that this entire comment appears intact.
    6  *
    7  * Redistribution in binary form may occur without any restrictions.
    8  * Obviously, it would be nice if you gave credit where credit is due
    9  * but requiring it would be too onerous.
   10  *
   11  * This software is provided ``AS IS'' without any warranties of any kind.
   12  *
   13  * Snoop stuff.
   14  *
   15  * $FreeBSD: src/sys/sys/snoop.h,v 1.14.2.1 2002/03/11 01:23:05 dd Exp $
   16  * $DragonFly: src/sys/sys/snoop.h,v 1.3 2006/09/10 01:26:40 dillon Exp $
   17  */
   18 
   19 #ifndef _SYS_SNOOP_H_
   20 #define _SYS_SNOOP_H_
   21 
   22 #include <sys/ioccom.h>
   23 
   24 /*
   25  * Theese are snoop io controls
   26  * SNPSTTY accepts 'struct snptty' as input.
   27  * If ever type or  unit set to -1,snoop device
   28  * detached from its current tty.
   29  */
   30 
   31 #ifdef _KERNEL
   32 
   33 #define SNPSTTY       _IOW('T', 90, udev_t)
   34 #define SNPGTTY       _IOR('T', 89, udev_t)
   35 
   36 #else
   37 
   38 #define SNPSTTY       _IOW('T', 90, dev_t)
   39 #define SNPGTTY       _IOR('T', 89, dev_t)
   40 
   41 #endif
   42 
   43 /*
   44  * Theese values would be returned by FIONREAD ioctl
   45  * instead of number of characters in buffer in case
   46  * of specific errors.
   47  */
   48 #define SNP_OFLOW               -1
   49 #define SNP_TTYCLOSE            -2
   50 #define SNP_DETACH              -3
   51 
   52 #endif /* !_SYS_SNOOP_H_ */

Cache object: d25aa1d1db1b4c47658b42bcc81ff817


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.