Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversrmalloc_wait(9F)


NAME

 rmalloc_wait - allocate space from a resource map, wait if necessary

SYNOPSIS

 
#include <sys/map.h>
#include <sys/ddi.h>
unsigned long rmalloc_wait(struct map *mp, size_t size);

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

 
mp
Pointer to the resource map from which space is to be allocated.
size
Number of units of space to allocate.

DESCRIPTION

 

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

RETURN VALUES

 

rmalloc_wait() returns the base of the allocated space.

CONTEXT

 

This function can be called from user or interrupt context. However, in most cases rmalloc_wait() should be called from user context only.

SEE ALSO

 

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

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 28 Apr 1992

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.