mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
cdevsw[] entry for snoop device.
I took 53 and it was too late when Jordan sayd it better been 60..besides i have no clue how to make it 60.. Jordan- pleeease don't kill me..(This is also useful(??) device..)
This commit is contained in:
parent
99fd7a9b42
commit
71ac9ea4e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6389
@ -42,7 +42,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)conf.c 5.8 (Berkeley) 5/12/91
|
||||
* $Id: conf.c,v 1.60 1995/02/09 11:59:40 jkh Exp $
|
||||
* $Id: conf.c,v 1.61 1995/02/11 05:54:04 jkh Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -407,6 +407,23 @@ extern struct tty pt_tty[];
|
||||
#define ptsstop nullstop
|
||||
#endif
|
||||
|
||||
|
||||
#include "snp.h"
|
||||
#if NSNP > 0
|
||||
d_open_t snpopen;
|
||||
d_close_t snpclose;
|
||||
d_rdwr_t snpread;
|
||||
d_select_t snpselect;
|
||||
d_ioctl_t snpioctl;
|
||||
#else
|
||||
#define snpopen nxopen
|
||||
#define snpclose nxclose
|
||||
#define snpread nxread
|
||||
#define snpioctl nxioctl
|
||||
#define snpselect nxselect
|
||||
#endif
|
||||
|
||||
|
||||
/* /dev/klog */
|
||||
d_open_t logopen;
|
||||
d_close_t logclose;
|
||||
@ -970,6 +987,9 @@ struct cdevsw cdevsw[] =
|
||||
{ tunopen, tunclose, tunread, tunwrite, /*52*/
|
||||
tunioctl, nostop, nullreset, NULL, /* tunnel */
|
||||
tunselect, nommap, NULL },
|
||||
{ snpopen, snpclose, snpread, nowrite, /*53*/
|
||||
snpioctl, nostop, nullreset, NULL, /* snoop */
|
||||
snpselect, nommap, NULL },
|
||||
};
|
||||
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user