auto_dev-ioctl.h revision c0a0872d5c5a0e948c3ace0fb1578a64840ebc8e
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * Copyright 2008 Red Hat, Inc. All rights reserved.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * Copyright 2008 Ian Kent <raven@themaw.net>
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * This file is part of the Linux kernel and is made available under
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * the terms of the GNU General Public License, version 2, or at your
4d7859d173282e16bb75254c2b4ec14a915ef30bKay Sievers * option, any later version, incorporated herein by reference.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering#endif /* __KERNEL__ */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering#define AUTOFS_DEV_IOCTL_SIZE sizeof(struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * An ioctl interface for autofs mount point control.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * All the ioctls use this structure.
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * When sending a path size must account for the total length
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * of the chunk of memory otherwise is is the size of the
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering __u32 size; /* total size of data passed in
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * including this struct */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering __s32 ioctlfd; /* automount command fd */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Command parameters */
ffc06c3513d9a0693c7f810d03b20705127ba55aKay Sieversstatic inline void init_autofs_dev_ioctl(struct autofs_dev_ioctl *in)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering in->ver_major = AUTOFS_DEV_IOCTL_VERSION_MAJOR;
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * If you change this make sure you make the corresponding change
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering * to autofs-dev-ioctl.c:lookup_ioctl()
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Get various version info */
4d7859d173282e16bb75254c2b4ec14a915ef30bKay Sievers /* Open mount ioctl fd */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Close mount ioctl fd */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Mount/expire status returns */
4d7859d173282e16bb75254c2b4ec14a915ef30bKay Sievers /* Activate/deactivate autofs mount */
4d7859d173282e16bb75254c2b4ec14a915ef30bKay Sievers /* Expiry timeout */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Get mount last requesting uid and gid */
4d7859d173282e16bb75254c2b4ec14a915ef30bKay Sievers /* Check for eligible expire candidates */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering /* Request busy status */
4d7859d173282e16bb75254c2b4ec14a915ef30bKay Sievers /* Check if path is a mountpoint */
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_VERSION_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_PROTOVER_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_PROTOSUBVER_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_OPENMOUNT_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_CLOSEMOUNT_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_READY_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_FAIL_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_SETPIPEFD_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_CATATONIC_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_TIMEOUT_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_REQUESTER_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_EXPIRE_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_ASKUMOUNT_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering AUTOFS_DEV_IOCTL_ISMOUNTPOINT_CMD, struct autofs_dev_ioctl)
2087a7aff26ea5d1bc2c7c29add3275328f36baaLennart Poettering#endif /* _LINUX_AUTO_DEV_IOCTL_H */