⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linedisc.h

📁 unix and linux net driver
💻 H
字号:
/* * linedisc.h -- includes for use with loadable line disciplines */#define	KERNEL		1#define	KERNEL_FEATURES	1#ifdef m68k#import <machine/reg.h>#endif#import <sys/param.h>/*#import <sys/systm.h>*/#import <sys/user.h>#import <sys/ioctl.h>#import <sys/tty.h>#import <sys/proc.h>/*#import <sys/vnode.h>#import <sys/file.h>*/#import <sys/conf.h>#import <sys/buf.h>#import <sys/dk.h>#import <sys/uio.h>#import <sys/kernel.h>/*#import <machine/spl.h>*/#ifdef m68k#include "spl.h"#endif#if	NeXT/*#import <next/cons.h>#import <nextdev/kmreg.h>*/#endif	NeXT/* * Line discipline "kind" * NORMAL_LDISC -- Normal line disciplines use tty struct clists in *			standard manner * SPECIAL_LDISC -- Special line disciplines have private buffering *			strategy */#define	NORMAL_LDISC	0#define	SPECIAL_LDISC	1extern int tty_ld_install(	int ld_number,	int ld_kind,	int (*ld_open)(dev_t dev, struct tty *tp),	void (*ld_close)(struct tty *tp),	int (*ld_read)(struct tty *tp, struct uio *uiop),	int (*ld_write)(struct tty *tp, struct uio *uiop),	int (*ld_ioctl)(struct tty *tp, int command, void *dataptr, int flag),	void (*ld_rint)(int c, struct tty *tp),	void (*ld_rend)(char *cp, u_int n, struct tty *tp),	void (*ld_start)(struct tty *tp),	int (*ld_modem)(struct tty *tp, int dcd_on),	int (*ld_select)(struct tty *tp, int rw));extern int tty_ld_remove(int ld_number);extern void ttydevstart(struct tty *tp);extern void ttydevstop(struct tty *tp);extern void ttyselwait(struct tty *tp, int rw);extern void ttselwakeup(struct tty *tp);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -