ldi_ident_from_stream man page on OpenIndiana

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

ldi_ident_from_dev(9F)	 Kernel Functions for Drivers	ldi_ident_from_dev(9F)

NAME
       ldi_ident_from_dev,	ldi_ident_from_stream,	   ldi_ident_from_dip,
       ldi_ident_release - ldi cookie management

SYNOPSIS
       #include <sys/sunldi.h>

       int ldi_ident_from_dip(dev_info_t *dip, ldi_ident_t *lip);

       int ldi_ident_from_dev(dev_t dev, ldi_ident_t *lip);

       int ldi_ident_from_stream(struct queue *sq, ldi_ident_t *lip);

       void ldi_ident_release(ldi_ident_t li);

PARAMETERS
       li     ldi identifier

       lip    ldi identifier pointer

       dip    pointer to device info node

       dev    device number

       sq     pointer to a stream queue

DESCRIPTION
       The ldi_ident_from_dev() function allocates and	returns an ldi identi‐
       fier  that  is  associated with the device number specified by dev. The
       new ldi identifier is returned in the ldi identifier pointer  parameter
       lip.

       The ldi_ident_from_dip() function allocates and	returns an ldi identi‐
       fier that is associated with the device info node pointed  to  by  dip.
       The  new	 ldi  identifier  is   returned	 in the ldi identifier pointer
       parameter lip.

       The ldi_ident_from_stream() function allocates and returns an ldi iden‐
       tifier  that is associated with the stream pointed to by queue. The new
       ldi identifier is returned in the ldi identifier pointer parameter lip.

       The ldi_ident_release() function releases an identifier that was	 allo‐
       cated by one of the ldi_ident_from_*() functions.

RETURN VALUES
       The	  ldi_ident_from_dev(),	       ldi_ident_from_dip(),	   and
       ldi_ident_from_stream() functions return 0 upon success.

       All of these functions return EINVAL for invalid input parameters.

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

SunOS 5.11			  26 Mar 2009		ldi_ident_from_dev(9F)
[top]

List of man pages available for OpenIndiana

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