1nochpoll(9F) Kernel Functions for Drivers nochpoll(9F)
2
3
4
6 nochpoll - error return function for non-pollable devices
7
9 #include <sys/ddi.h>
10 #include <sys/sunddi.h>
11
12
13
14 int nochpoll(dev_t dev, short events, int anyyet, short *reventsp,
15 struct pollhead **pollhdrp);
16
17
19 Solaris DDI specific (Solaris DDI).
20
22 dev Device number.
23
24
25 events Event flags.
26
27
28 anyyet Check current events only.
29
30
31 reventsp Event flag pointer.
32
33
34 pollhdrp Poll head pointer.
35
36
38 The nochpoll() function is a routine that simply returns the value
39 ENXIO. It is intended to be used in the cb_ops(9S) structure of a
40 device driver for devices that do not support the poll(2) system call.
41
43 The nochpoll() function returns ENXIO.
44
46 The nochpoll() function can be called from user, interrupt, or kernel
47 context.
48
50 poll(2), chpoll(9E), cb_ops(9S)
51
52
53 Writing Device Drivers
54
55
56
57SunOS 5.11 16 Jan 2006 nochpoll(9F)