2 .\" This manual page is derived from the DAT/uDAPL 1.2 specification.
3 .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH DAT_SET_CONSUMER_CONTEXT 3DAT "Jul 16, 2004"
9 dat_set_consumer_context \- set Consumer context
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldat\fR [ \fIlibrary\fR\&.\|.\|. ]
14 #include <\fBdat/udat.h\fR>
17 dat_set_consumer_context (
18 IN DAT_HANDLE \fIdat_handle\fR,
19 IN DAT_CONTEXT \fIcontext\fR
27 \fB\fIdat_handle\fR\fR
30 Handle for a DAT Object associated with \fIcontext\fR.
39 Consumer context to be stored within the associated \fIdat_handle\fR. The
40 Consumer context is opaque to the uDAPL Provider. \fINULL\fR represents no
47 The \fBdat_set_consumer_context()\fR function associates a Consumer context
48 with the specified \fIdat_handle\fR. The \fIdat_handle\fR can be one of the
49 following handle types: \fBDAT_IA_HANDLE\fR, \fBDAT_EP_HANDLE\fR,
50 \fBDAT_EVD_HANDLE\fR, \fBDAT_CR_HANDLE\fR, \fBDAT_RSP_HANDLE\fR,
51 \fBDAT_PSP_HANDLE\fR, \fBDAT_PZ_HANDLE\fR, \fBDAT_LMR_HANDLE\fR,
52 \fBDAT_RMR_HANDLE\fR, or \fBDAT_CNO_HANDLE\fR.
55 Only a single Consumer context is provided for any \fIdat_handle\fR. If there
56 is a previous Consumer context associated with the specified handle, the new
57 context replaces the old one. The Consumer can disassociate the existing
58 context by providing a NULL pointer for the \fIcontext\fR. The Provider makes
59 no assumptions about the contents of \fIcontext\fR; no check is made on its
60 value. Furthermore, the Provider makes no attempt to provide any
61 synchronization for access or modification of the \fIcontext\fR.
66 \fB\fBDAT_SUCCESS\fR\fR
69 The operation was successful.
75 \fB\fBDAT_INVALID_PARAMETER\fR\fR
78 The \fIcontext\fR parameter is invalid.
84 \fB\fBDAT_INVALID_HANDLE\fR\fR
87 The \fIdat_handle\fR parameter is invalid.
93 See \fBattributes\fR(5) for descriptions of the following attributes:
101 ATTRIBUTE TYPE ATTRIBUTE VALUE
103 Interface Stability Standard: uDAPL, 1.1, 1.2
111 \fBdat_get_consumer_context\fR(3DAT), \fBlibdat\fR(3LIB), \fBattributes\fR(5)