ldi_read 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_READ(9F)							  LDI_READ(9F)

NAME
       ldi_read, ldi_write - Read and write from a device

SYNOPSIS
       #include <sys/sunldi.h>

       int ldi_read(ldi_handle_t lh, struct uio *uiop, cred_t *cr);

       int  ldi_write(ldi_handle_t lh, struct uio *uiop, cred_t *cr);

PARAMETERS
       lh
		Layered handle.

       cr
		Pointer to a credential structure used to open a device.

       uiop
		Pointer to the uio(9S) structure. uio(9S) specifies  the loca‐
		tion of the read or write data.	 (Either userland or kernel.)

DESCRIPTION
       The ldi_read() function passes a read 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.

       The ldi_write() function passes a write request	to  the	 device	 entry
       point  for  a device specified by the layered handle. This operation is
       supported for block,  character, and streams devices.

RETURN VALUES
       The ldi_read() and ldi_write() functions return 0 upon success.	If   a
       failure occurs before the request is passed to the device, the possible
       return values are shown below. Otherwise any other error number may  be
       returned by the device.

       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_READ(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