'\" te .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved .TH csx_RequestSocketMask 9F "19 Jul 1996" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME csx_RequestSocketMask, csx_ReleaseSocketMask \- set or clear the client's client event mask .SH SYNOPSIS .LP .nf #include \fBint32_t\fR \fBcsx_RequestSocketMask\fR(\fBclient_handle_t\fR \fIch\fR, \fBrequest_socket_mask_t *\fR\fIsm\fR); .fi .LP .nf \fBint32_t\fR \fBcsx_ReleaseSocketMask\fR(\fBclient_handle_t\fR \fIch\fR, \fBrelease_socket_mask_t *\fR\fIrm\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris \fBDDI\fR Specific (Solaris \fBDDI\fR) .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIch\fR\fR .ad .RS 6n .rt Client handle returned from \fBcsx_RegisterClient\fR(9F). .RE .sp .ne 2 .mk .na \fB\fIsm\fR\fR .ad .RS 6n .rt Pointer to a \fBrequest_socket_mask_t\fR structure. .RE .sp .ne 2 .mk .na \fB\fIrm\fR\fR .ad .RS 6n .rt Pointer to a \fBrelease_socket_mask_t\fR structure. .RE .SH DESCRIPTION .sp .LP The function \fBcsx_RequestSocketMask()\fR sets the client's client event mask and enables the client to start receiving events at its event callback handler. Once this function returns successfully, the client can start receiving events at its event callback handler. Any pending events generated from the call to \fBcsx_RegisterClient\fR(9F) will be delivered to the client after this call as well. This allows the client to set up the event handler mutexes before the event handler gets called. .sp .LP \fBcsx_RequestSocketMask()\fR must be used before calling \fBcsx_GetEventMask\fR(9F) or \fBcsx_SetEventMask\fR(9F) for the client event mask for this socket. .sp .LP The function \fBcsx_ReleaseSocketMask()\fR clears the client's client event mask. .SH STRUCTURE MEMBERS .sp .LP The structure members of \fBrequest_socket_mask_t\fR are: .sp .in +2 .nf uint32_t Socket; /* socket number */ uint32_t EventMask; /* event mask to set or return */ .fi .in -2 .sp .LP The structure members of \fBrelease_socket_mask_t\fR are: .sp .in +2 .nf uint32_t Socket; /* socket number */ .fi .in -2 .sp .LP The fields are defined as follows: .sp .ne 2 .mk .na \fB\fBSocket\fR\fR .ad .RS 13n .rt Not used in Solaris, but for portability with other Card Services implementations, it should be set to the logical socket number. .RE .sp .ne 2 .mk .na \fB\fBEventMask\fR\fR .ad .RS 13n .rt This field is bit-mapped. Card Services performs event notification based on this field. See \fBcsx_event_handler\fR(9E) for valid event definitions and for additional information about handling events. .RE .SH RETURN VALUES .sp .ne 2 .mk .na \fB\fBCS_SUCCESS\fR\fR .ad .RS 27n .rt Successful operation. .RE .sp .ne 2 .mk .na \fB\fBCS_BAD_HANDLE\fR\fR .ad .RS 27n .rt Client handle is invalid. .RE .sp .ne 2 .mk .na \fB\fBCS_IN_USE\fR\fR .ad .RS 27n .rt \fBcsx_ReleaseSocketMask()\fR has not been done. .RE .sp .ne 2 .mk .na \fB\fBCS_BAD_SOCKET\fR\fR .ad .RS 27n .rt \fBcsx_RequestSocketMask()\fR has not been done. .RE .sp .ne 2 .mk .na \fB\fBCS_UNSUPPORTED_FUNCTION\fR\fR .ad .RS 27n .rt No \fBPCMCIA\fR hardware installed. .RE .SH CONTEXT .sp .LP These functions may be called from user or kernel context. .SH SEE ALSO .sp .LP \fBcsx_event_handler\fR(9E), \fBcsx_GetEventMask\fR(9F), \fBcsx_RegisterClient\fR(9F), \fBcsx_SetEventMask\fR(9F) .sp .LP \fIPC Card 95 Standard\fR, PCMCIA/JEIDA