|VOP_IOCTL(9)||FreeBSD Kernel Developer's Manual||VOP_IOCTL(9)|
NAMEVOP_IOCTL — device specific control
SYNOPSIS#include < sys/param.h>
#include < sys/vnode.h>
VOP_IOCTL( struct vnode *vp, u_long command, caddr_t data, int fflag, struct ucred *cred, struct thread *td);
DESCRIPTIONManipulate 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.
Most file systems do not implement this entry point.
LOCKSThe file should not be locked on entry.
RETURN VALUESIf successful, zero is returned, otherwise an appropriate error code.
If the ioctl is not recognized or not handled, ENOTTY should be returned.
AUTHORSThis manual page was written by .
|July 24, 1996||FreeBSD|