xref: /titanic_52/usr/src/man/man9f/devmap_set_ctx_timeout.9f (revision 174bc6499d233e329ecd3d98a880a7b07df16bfa)
te
Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
DEVMAP_SET_CTX_TIMEOUT 9F "Jan 16, 2006"
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

The devmap_set_ctx_timeout() function 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

The devmap_set_ctx_timeout() function can be called from user, interrupt, or kernel context.

SEE ALSO

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