MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers               ldiidentfromdev(9F)



NAME
     ldiidentfromdev,                   ldiidentfromstream,
     ldiidentfromdip,  ldiidentrelease  - ldi cookie manage-
     ment

SYNOPSIS
     #include 

     int ldiidentfromdip(devinfot *dip, ldiidentt *lip);


     int ldiidentfromdev(devt dev, ldiidentt  *lip);


     void ldiidentfromstream(struct queue  *sq, ldiidentt  *lip);


     void ldiidentrelease(ldiidentt 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 ldiidentfromdev() function allocates and  returns  an
     ldi  identifier  that  is  associated with the device number
     specified by dev. The new ldi identifier is returned via the
     ldi identifier pointer parameter lip.


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


     The ldiidentfromstream() function allocates  and  returns
     an ldi identifier that is associated with the stream pointed
     to by queue.  The new ldi identifier is returned via the ldi



SunOS 5.11          Last change: 3 June 2003                    1






Kernel Functions for Drivers               ldiidentfromdev(9F)



     identifier pointer parameter lip.


     The ldiidentrelease() function releases an identifier that
     was allocated via one of the ldiidentfrom()* functions.

RETURN VALUES
     The    ldiidentfromdev(),    ldiidentfromdip(),    and
     ldiidentfromstream() 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          Last change: 3 June 2003                    2



OpenSolaris man pages main menu

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