Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / sys / svrctl.h @ 13

History | View | Annotate | Download (942 Bytes)

1
/*
2
sys/svrctl.h
3

4
Created:        Feb 15, 1994 by Philip Homburg <philip@cs.vu.nl>
5
*/
6

    
7
#ifndef _SYS__SVRCTL_H
8
#define _SYS__SVRCTL_H
9

    
10
#include <sys/types.h>
11

    
12
/* Server control commands have the same encoding as the commands for ioctls. */
13
#include <minix/ioctl.h>
14

    
15
/* PM controls. */
16
#define PMGETPARAM        _IOWR('P',  0, struct sysgetenv)
17
#define PMSETPARAM        _IOW('P',  1, struct sysgetenv)
18

    
19
#define OPMGETPARAM        _IOW('M',  5, struct sysgetenv)        /* old, phasing out */
20
#define OPMSETPARAM        _IOR('M',  7, struct sysgetenv)        /* old, phasing out */
21

    
22
/* VFS controls */
23
#define VFSGETPARAM        _IOWR('F', 0, struct sysgetenv)
24
#define VFSSETPARAM        _IOW('F', 1, struct sysgetenv)
25

    
26
struct sysgetenv {
27
        char                *key;                /* Name requested. */
28
        size_t                keylen;                /* Length of name including \0. */
29
        char                *val;                /* Buffer for returned data. */
30
        size_t                vallen;                /* Size of return data buffer. */
31
};
32

    
33
int svrctl(unsigned long _request, void *_data);
34

    
35
#endif /* _SYS__SVRCTL_H */