'\" te .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved .TH csx_MapLogSocket 9F "19 Jul 1996" "SunOS 5.11" "Kernel Functions for Drivers" .SH NAME csx_MapLogSocket \- return the physical socket number associated with the client handle .SH SYNOPSIS .LP .nf #include \fBint32_t\fR \fBcsx_MapLogSocket\fR(\fBclient_handle_t\fR \fIch\fR, \fBmap_log_socket_t *\fR\fIls\fR); .fi .SH INTERFACE LEVEL .sp .LP Solaris \fBDDI \fRSpecific (Solaris \fBDDI) \fR .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIch\fR \fR .ad .RS 7n .rt Client handle returned from \fBcsx_RegisterClient\fR(9F). .RE .sp .ne 2 .mk .na \fB\fIls\fR \fR .ad .RS 7n .rt Pointer to a \fBmap_log_socket_t\fR structure. .RE .SH DESCRIPTION .sp .LP This function returns the physical socket number associated with the client handle. .SH STRUCTURE MEMBERS .sp .LP The structure members of \fBmap_log_socket_t\fR are: .sp .in +2 .nf uint32_t LogSocket; /* logical socket number */ uint32_t PhyAdapter; /* physical adapter number */ uint32_t PhySocket; /* physical socket number */ .fi .in -2 .sp .LP The fields are defined as follows: .sp .ne 2 .mk .na \fB\fBLogSocket\fR \fR .ad .RS 15n .rt Not used by this implementation of Card Services and can be set to any arbitrary value. .RE .sp .ne 2 .mk .na \fB\fBPhyAdapter\fR \fR .ad .RS 15n .rt Returns the physical adapter number, which is always \fB0\fR in the Solaris implementation of Card Services. .RE .sp .ne 2 .mk .na \fB\fBPhySocket\fR \fR .ad .RS 15n .rt Returns the physical socket number associated with the client handle. The physical socket number is typically used as part of an error or message string or if the client creates minor nodes based on the physical socket number. .RE .SH RETURN VALUES .sp .ne 2 .mk .na \fB\fBCS_SUCCESS\fR \fR .ad .RS 28n .rt Successful operation. .RE .sp .ne 2 .mk .na \fB\fBCS_BAD_HANDLE\fR \fR .ad .RS 28n .rt Client handle is invalid. .RE .sp .ne 2 .mk .na \fB\fBCS_UNSUPPORTED_FUNCTION\fR \fR .ad .RS 28n .rt No \fBPCMCIA \fRhardware installed. .RE .SH CONTEXT .sp .LP This function may be called from user or kernel context. .SH SEE ALSO .sp .LP \fBcsx_RegisterClient\fR(9F) .sp .LP \fIPC Card 95 Standard, PCMCIA/JEIDA\fR