ldi_poll man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

LDI_POLL(9F)							  LDI_POLL(9F)

NAME
       ldi_poll - Poll a device

SYNOPSIS
       #include <sys/sunldi.h>

       int ldi_poll(ldi_handle_t lh, short events, int anyyet, short *reventsp,
	    struct pollhead **phpp);

PARAMETERS
       lh
		    Layered handle.

       events
		    Potential events. Valid events are:

		    POLLIN
				  Data	other  than  high priority data may be
				  read without blocking.

		    POLLOUT
				  Normal data may be written without blocking.

		    POLLPRI
				  High priority data may be  received  without
				  blocking.

		    POLLHUP
				  Device hangup has occurred.

		    POLLERR
				  An error has occurred on the device.

		    POLLRDNORM
				  Normal  data (priority band = 0) may be read
				  without blocking.

		    POLLRDBAND
				  Data from a non-zero priority	 band  may  be
				  read without blocking.

		    POLLWRNORM
				  Data	other  than  high priority data may be
				  read without blocking.

		    POLLWRBAND
				  Priority data (priority band	>  0)  may  be
				  written.

       anyyet
		    A  flag  that  is  non-zero	 if any other file descriptors
		    in the pollfd array have events pending. The poll(2)  sys‐
		    tem	  call	 takes	 a  pointer  to	 an  array  of	pollfd
		    structures as one of its arguments. See poll(2)  for  more
		    details.

       reventsp
		    Pointer to a bitmask of the returned events satisfied.

       phpp
		    Pointer to a pointer to a pollhead structure.

DESCRIPTION
       The ldi_poll() function passes a poll request to the device entry point
       for the device specified by the layered handle. This operation is  sup‐
       ported for block, character, and streams devices.

RETURN VALUES
       The  ldi_poll()	function  returns  0 upon success. If a failure occurs
       before the request is passed on to the device, possible	return	values
       are:

       EINVAL
		  Invalid input parameters.

       ENOTSUP
		  Operation is not supported for this device.

CONTEXT
       These functions may be called from user or kernel context.

				  Jun 3, 2003			  LDI_POLL(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net