VOP_IOCTL -- device specific control
VOP_IOCTL(struct vnode *vp, u_long command, caddr_t data, int fflag,
struct ucred *cred, struct thread *td);
Manipulate a file in device dependent ways.
Its arguments are:
vp the vnode of the file (normally representing a device)
command the device specific operation to perform
cnp extra data for the specified operation
fflag some flags ???
cred the caller's credentials
td the calling thread
Most file systems do not implement this entry point.
The file should not be locked on entry.
If successful, zero is returned, otherwise an appropriate error code.
If the ioctl is not recognized or not handled, ENOTTY should be returned.
vop_ioctl(struct vnode *vp, int command, caddr_t data, int fflag,
struct ucred *cred, struct thread *td)
This man page was written by Doug Rabson.
FreeBSD 5.2.1 July 24, 1996 FreeBSD 5.2.1 [ Back ]