MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                     rmallocwait(9F)



NAME
     rmallocwait - allocate space from a resource map,  wait  if
     necessary

SYNOPSIS
     #include 
     #include 



     unsigned long rmallocwait(struct map *mp, sizet size);


INTERFACE LEVEL
     Architecture independent level 1 (DI/DKI).

PARAMETERS
     mp      Pointer to the resource map from which space  is  to
             be allocated.


     size    Number of units of space to allocate.


DESCRIPTION
     The rmallocwait() function requests an allocation of  space
     from  a  resource  map.  rmallocwait()  is  similar  to the
     rmalloc(9F) function with the exception that  it  will  wait
     for space to become available if necessary.

RETURN VALUES
     The rmallocwait() function returns the base  of  the  allo-
     cated space.

CONTEXT
     This function can be called from user, interrupt, or  kernel
     context. However, in most cases rmallocwait() should not be
     called from interrupt context.

SEE ALSO
     rmalloc(9F), rmallocmap(9F), rmfree(9F), rmfreemap(9F)


     Writing Device Drivers











SunOS 5.11          Last change: 16 Jan 2006                    1



OpenSolaris man pages main menu

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