/*
* Copyright 2008 Red Hat, Inc. All rights reserved.
* Copyright 2008 Ian Kent <raven@themaw.net>
*
* 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.
*/
#ifndef _LINUX_AUTO_DEV_IOCTL_H
#define _LINUX_AUTO_DEV_IOCTL_H
#ifdef __KERNEL__
#else
#include <string.h>
#endif /* __KERNEL__ */
#define AUTOFS_DEV_IOCTL_VERSION_MINOR 0
/*
* An ioctl interface for autofs mount point control.
*/
struct args_protover {
};
struct args_protosubver {
};
struct args_openmount {
};
struct args_ready {
};
struct args_fail {
};
struct args_setpipefd {
};
struct args_timeout {
};
struct args_requester {
};
struct args_expire {
};
struct args_askumount {
};
struct args_ismountpoint {
union {
struct args_in {
} in;
struct args_out {
} out;
};
};
/*
* All the ioctls use this structure.
* When sending a path size must account for the total length
* of the chunk of memory otherwise is is the size of the
* structure.
*/
struct autofs_dev_ioctl {
* including this struct */
/* Command parameters */
union {
};
char path[0];
};
return;
}
/*
* If you change this make sure you make the corresponding change
* to autofs-dev-ioctl.c:lookup_ioctl()
*/
enum {
/* Get various version info */
/* Open mount ioctl fd */
/* Close mount ioctl fd */
/* Activate/deactivate autofs mount */
/* Expiry timeout */
/* Get mount last requesting uid and gid */
/* Check for eligible expire candidates */
/* Request busy status */
/* Check if path is a mountpoint */
};
#define AUTOFS_DEV_IOCTL_VERSION \
#define AUTOFS_DEV_IOCTL_PROTOVER \
#define AUTOFS_DEV_IOCTL_PROTOSUBVER \
#define AUTOFS_DEV_IOCTL_OPENMOUNT \
#define AUTOFS_DEV_IOCTL_CLOSEMOUNT \
#define AUTOFS_DEV_IOCTL_READY \
#define AUTOFS_DEV_IOCTL_FAIL \
#define AUTOFS_DEV_IOCTL_SETPIPEFD \
#define AUTOFS_DEV_IOCTL_CATATONIC \
#define AUTOFS_DEV_IOCTL_TIMEOUT \
#define AUTOFS_DEV_IOCTL_REQUESTER \
#define AUTOFS_DEV_IOCTL_EXPIRE \
#define AUTOFS_DEV_IOCTL_ASKUMOUNT \
#define AUTOFS_DEV_IOCTL_ISMOUNTPOINT \
#endif /* _LINUX_AUTO_DEV_IOCTL_H */