Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
VOP_IOCTL(9)	       FreeBSD Kernel Developer's Manual	  VOP_IOCTL(9)

NAME
     VOP_IOCTL -- device specific control

SYNOPSIS
     #include <sys/vnode.h>

     int
     VOP_IOCTL(struct vnode *vp, int command, caddr_t data, int	fflag,
	 struct	ucred *cred, struct proc *p);

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

     cnp      extra data for the specified operation

     fflag    some flags ???

     cred     the caller's credentials

     p	      the calling process

     Most filesystems do not implement this entry point.

LOCKS
     The file should not be locked on entry.

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

PSEUDOCODE
     int
     vop_ioctl(struct vnode *vp, int command, caddr_t data, int	fflag,
	       struct ucred *cred, struct proc *p)
     {
	 return	EOPNOTSUPP;
     }

SEE ALSO
     vnode(9)

AUTHORS
     This man page was written by Doug Rabson.

FreeBSD	11.1			 July 24, 1996			  FreeBSD 11.1

NAME | SYNOPSIS | DESCRIPTION | LOCKS | RETURN VALUES | PSEUDOCODE | SEE ALSO | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=VOP_IOCTL&sektion=9&manpath=FreeBSD+2.2.1-RELEASE>

home | help