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

📄 svrctl.h

📁 Minix3.11的源码。[MINIX 3是一个为高可靠性应用而设计的自由且简洁的类UNIX系统。]
💻 H
字号:
/*sys/svrctl.hCreated:	Feb 15, 1994 by Philip Homburg <philip@cs.vu.nl>*/#ifndef _SYS__SVRCTL_H#define _SYS__SVRCTL_H#ifndef _TYPES_H#include <sys/types.h>#endif/* Server control commands have the same encoding as the commands for ioctls. */#include <minix/ioctl.h>/* MM controls. */#define MMSIGNON	_IO ('M',  4)#define MMSWAPON	_IOW('M',  5, struct mmswapon)#define MMSWAPOFF	_IO ('M',  6)#define MMGETPARAM	_IOW('M',  5, struct sysgetenv)#define MMSETPARAM	_IOR('M',  7, struct sysgetenv)/* FS controls. */#define FSSIGNON	_IOW('F',  2, struct fssignon)#define FSDEVMAP	_IORW('F', 5, struct fsdevmap)#define FSDEVUNMAP	_IOW('F',  6, struct fsdevunmap)/* Kernel controls. */#define SYSSENDMASK	_IO ('S',  4)#define SYSSIGNON	_IOR('S',  2, struct systaskinfo)#define SYSGETENV	_IOW('S',  1, struct sysgetenv)struct mmswapon {	u32_t		offset;		/* Starting offset within file. */	u32_t		size;		/* Size of swap area. */	char		file[128];	/* Name of swap file/device. */};struct svrqueryparam {	char		*param;		/* Names of parameters to query. */	size_t		psize;		/* Length of param[]. */	char		*value;		/* To return values. */	size_t		vsize;};/* A proper system call must be created later. */#include <minix/dmap.h>struct fssignon {	dev_t		dev;		/* Device to manage. */	enum dev_style	style;		/* Management style. */};struct fsdevunmap {	dev_t		dev;		/* Device to unmap. */};struct systaskinfo {	int		proc_nr;	/* Process number of caller. */};struct sysgetenv {	char		*key;		/* Name requested. */	size_t		keylen;		/* Length of name including \0. */	char		*val;		/* Buffer for returned data. */	size_t		vallen;		/* Size of return data buffer. */};_PROTOTYPE( int svrctl, (int _request, void *_data)			);#endif /* _SYS__SVRCTL_H */

⌨️ 快捷键说明

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