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 Driversdevmap_set_ctx_timeout(9F)


NAME

 devmap_set_ctx_timeout - set the timeout value for the context management callback

SYNOPSIS

 
#include <sys/ddi.h> 
#include <sys/sunddi.h>
void devmap_set_ctx_timeout(devmap_cookie_t dhp, clock_t ticks);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI).

PARAMETERS

 
dhp
An opaque mapping handle that the system uses to describe the mapping.
ticks
Number of clock ticks to wait between successive calls to the context management callback function.

DESCRIPTION

 

devmap_set_ctx_timeout() specifies the time interval for the system to wait between successive calls to the driver's context management callback function, devmap_contextmgt(9E).

Device drivers typically call devmap_set_ctx_timeout() in the devmap_map(9E) routine. If the drivers do not call devmap_set_ctx_timeout() to set the timeout value, the default timeout value of 0 will result in no delay between successive calls to the driver's devmap_contextmgt(9E) callback function.

CONTEXT

 

devmap_set_ctx_timeout() can be called from user or interrupt context.

SEE ALSO

 

devmap_contextmgt(9E), devmap_map(9E), timeout(9F)


SunOS 5.9Go To TopLast Changed 22 Jan 1997

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