nochpoll(9F)
NAME
nochpoll − error return function for non-pollable devices.
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int nochpoll(dev_t dev, short events, int anyyet,
short ∗reventsp, struct pollhead ∗∗pollhdrp);
ARGUMENTS
dev Device number.
events Event flags.
anyyet Check current events only.
reventsp Event flag pointer.
pollhdrp Poll head pointer.
INTERFACE LEVEL
SPARC architecture specific (SPARC DDI).
DESCRIPTION
nochpoll() is a routine that simply returns the value ENXIO. It is intended to be used in the cb_ops(9S) structure of a device driver for devices that do not support the poll(2) system call.
RETURN VALUE
nochpoll() returns ENXIO.
CONTEXT
nochpoll() can be called from user or interrupt context.
SEE ALSO
SunOS 5.3 Writing Device Drivers
Sun Microsystems — Last change: 11 Apr 1991