*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> VOP_IOCTL (9)              



NAME    [Toc]    [Back]

     VOP_IOCTL -- device specific control

SYNOPSIS    [Toc]    [Back]

     #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);

DESCRIPTION    [Toc]    [Back]

     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.

LOCKS    [Toc]    [Back]

     The file should not be locked on entry.

RETURN VALUES    [Toc]    [Back]

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

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

PSEUDOCODE    [Toc]    [Back]

     vop_ioctl(struct vnode *vp, int command, caddr_t data, int fflag,
	       struct ucred *cred, struct thread *td)

	 return ENOTTY;

SEE ALSO    [Toc]    [Back]


AUTHORS    [Toc]    [Back]

     This man page was written by Doug Rabson.

FreeBSD 5.2.1			 July 24, 1996			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
devctl FreeBSD device event reporting and device control interface
ttyflags OpenBSD set device-specific flags for terminals
BUS_READ_IVAR FreeBSD manipulate bus-specific device instance variables
tapeio IRIX FORTRAN tape device specific I/O routines
BUS_WRITE_IVAR FreeBSD manipulate bus-specific device instance variables
device_set_driver FreeBSD associate a specific driver with a device node in the tree
mpsched HP-UX control the processor or locality domain on which a specific process executes
ioctl IRIX control device
ioctl Linux control device
ioctl FreeBSD control device
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service