tail head cat sleep
QR code linking to this page

Manual Pages  — VOP_IOCTL

NAME

VOP_IOCTL – device specific control

CONTENTS

SYNOPSIS

#include <sys/param.h>
#include <sys/vnode.h>

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

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.

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)

AUTHORS

This manual page was written by Doug Rabson.

VOP_IOCTL (9) July 24, 1996

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

"I liken starting one's computing career with Unix, say as an undergraduate, to being born in East Africa. It is intolerably hot, your body is covered with lice and flies, you are malnourished and you suffer from numerous curable diseases. But, as far as young East Africans can tell, this is simply the natural condition and they live within it. By the time they find out differently, it is too late. They already think that the writing of shell scripts is a natural act."
— Ken Pier, Xerox PARC