table of contents
|VOP_IOCTL(9)||Kernel Developer's Manual||VOP_IOCTL(9)|
NAME¶VOP_IOCTL — device specific control
#include <sys/vnode.h> int
VOP_IOCTL(struct vnode *vp, u_long command, caddr_t data, int fflag, struct ucred *cred, struct thread *td);
DESCRIPTION¶Manipulate a file in device dependent ways. Its arguments are:
- The vnode of the file (normally representing a device).
- The device specific operation to perform.
- Extra data for the specified operation.
- Some flags ???
- The caller's credentials.
- The calling thread.
LOCKS¶The file should not be locked on entry.
RETURN VALUES¶If successful, zero is returned, otherwise an appropriate error code. If the ioctl is not recognized or not handled,
ENOTTYshould be returned.
AUTHORS¶This manual page was written by Doug Rabson.
|July 24, 1996||Debian|