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

📄 devpts_fs.h

📁 unxi下共享内存的使用
💻 H
字号:
/* -*- linux-c -*- --------------------------------------------------------- * * * linux/include/linux/devpts_fs.h * *  Copyright 1998 H. Peter Anvin -- All Rights Reserved * * This file is part of the Linux kernel and is made available under * the terms of the GNU General Public License, version 2, or at your * option, any later version, incorporated herein by reference. * * ------------------------------------------------------------------------- *//* * Prototypes for the pty driver <-> devpts filesystem interface.  Most * of this is really just a hack so we can exclude it or build it as a * module, and probably should go away eventually. */#ifndef _LINUX_DEVPTS_FS_H#define _LINUX_DEVPTS_FS_H 1#include <linux/config.h>#include <linux/kdev_t.h>#include <linux/tty.h>#ifdef CONFIG_DEVPTS_FSvoid devpts_pty_new(int, kdev_t);void devpts_pty_kill(int);#define unix98_max_ptys               NR_PTYS * UNIX98_NR_MAJORS;#elif defined(CONFIG_DEVPTS_FS_MODULE)#ifdef BUILDING_PTY_Cvoid (*devpts_upcall_new)(int,kdev_t) = NULL;void (*devpts_upcall_kill)(int)       = NULL;unsigned int unix98_max_ptys          = NR_PTYS * UNIX98_NR_MAJORS;EXPORT_SYMBOL(devpts_upcall_new);EXPORT_SYMBOL(devpts_upcall_kill);EXPORT_SYMBOL(unix98_max_ptys);#elseextern void (*devpts_upcall_new)(int,kdev_t);extern void (*devpts_upcall_kill)(int);extern unsigned int unix98_max_ptys;#endif#ifndef BUILDING_DEVPTSstatic inline voiddevpts_pty_new(int line, kdev_t device){	if ( devpts_upcall_new )		return devpts_upcall_new(line,device);}static inline voiddevpts_pty_kill(int line){	if ( devpts_upcall_kill )		return devpts_upcall_kill(line);}#endif#else  /* No /dev/pts filesystem at all */static inline voiddevpts_pty_new(int line, kdev_t device) { }static inline voiddevpts_pty_kill(int line) { }#endif#endif /* _LINUX_DEVPTS_FS_H */

⌨️ 快捷键说明

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