Coda Distributed File System
Macros | Functions
pioctl.h File Reference
#include <sys/types.h>
#include <time.h>
#include <sys/ioctl.h>
#include <coda.h>
Include dependency graph for pioctl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PIOCTL_PREFIX   "...PIOCTL."
 
#define _VICEIOCTL(id)   (_IOW('V', id, struct ViceIoctl))
 
#define _VALIDVICEIOCTL(com)   (com >= _VICEIOCTL(0) && com <= _VICEIOCTL(255))
 
#define _IOC_TYPE(nr)   ((nr >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
 
#define _IOC_NR(nr)   ((nr >> _IOC_NRSHIFT) & _IOC_NRMASK)
 

Functions

int pioctl (const char *path, unsigned long com, struct ViceIoctl *vidata, int follow)
 

Macro Definition Documentation

◆ _IOC_NR

#define _IOC_NR (   nr)    ((nr >> _IOC_NRSHIFT) & _IOC_NRMASK)

◆ _IOC_TYPE

#define _IOC_TYPE (   nr)    ((nr >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)

◆ _VALIDVICEIOCTL

#define _VALIDVICEIOCTL (   com)    (com >= _VICEIOCTL(0) && com <= _VICEIOCTL(255))

◆ _VICEIOCTL

#define _VICEIOCTL (   id)    (_IOW('V', id, struct ViceIoctl))

◆ PIOCTL_PREFIX

#define PIOCTL_PREFIX   "...PIOCTL."

Function Documentation

◆ pioctl()

int pioctl ( const char *  path,
unsigned long  com,
struct ViceIoctl vidata,
int  follow 
)