minix/include/sys/svrctl.h

41 lines
951 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/*
sys/svrctl.h
Created: Feb 15, 1994 by Philip Homburg <philip@cs.vu.nl>
*/
#ifndef _SYS__SVRCTL_H
#define _SYS__SVRCTL_H
#ifndef _TYPES_H
#include <minix/types.h>
2005-04-21 16:53:53 +02:00
#endif
/* Server control commands have the same encoding as the commands for ioctls. */
#include <minix/ioctl.h>
/* PM controls. */
2005-04-21 16:53:53 +02:00
#define MMGETPARAM _IOW('M', 5, struct sysgetenv)
#define MMSETPARAM _IOR('M', 7, struct sysgetenv)
2005-04-21 16:53:53 +02:00
/* FS controls. */
#define FSSIGNON _IOW('F', 2, struct fssignon)
2005-06-17 11:15:39 +02:00
/* A proper system call must be created later. */
#include <minix/dmap.h>
2005-04-21 16:53:53 +02:00
struct fssignon {
dev_t dev; /* Device to manage. */
enum dev_style style; /* Management style. */
};
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 */