MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                         nochpoll(9F)



NAME
     nochpoll - error return function for non-pollable devices

SYNOPSIS
     #include 
     #include 



     int nochpoll(devt dev, short events, int anyyet, short *reventsp,
           struct pollhead **pollhdrp);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI).

PARAMETERS
     dev         Device number.


     events      Event flags.


     anyyet      Check current events only.


     reventsp    Event flag pointer.


     pollhdrp    Poll head pointer.


DESCRIPTION
     The nochpoll() function is a routine that simply returns the
     value   ENXIO.  It  is intended to be used in the cbops(9S)
     structure of a device driver for devices that do not support
     the poll(2) system call.

RETURN VALUES
     The nochpoll() function returns ENXIO.

CONTEXT
     The nochpoll() function can be called from user,  interrupt,
     or kernel context.

SEE ALSO
     poll(2), chpoll(9E), cbops(9S)


     Writing Device Drivers





SunOS 5.11          Last change: 16 Jan 2006                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™