logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

VOP_IOCTL — device specific control

Authors

       This manual page was written by Doug Rabson.

Debian                                            July 24, 1996                                     VOP_IOCTL(9)

Description

       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.

       data     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.

Locks

       The file should not be locked on entry.

Name

       VOP_IOCTL — device specific control

Return Values

       If successful, zero is returned, otherwise an appropriate error code.

       If the ioctl is not recognized or not handled, ENOTTY should be returned.

See Also

vnode(9)

Synopsis

#include<sys/param.h>#include<sys/vnode.h>intVOP_IOCTL(structvnode*vp,   u_longcommand,   caddr_tdata,  intfflag,  structucred*cred,
           structthread*td);

See Also