MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                 csxSetEventMask(9F)



NAME
     csxSetEventMask,  csxGetEventMask  -  set  or  return  the
     client event mask for the client

SYNOPSIS
     #include 



     int32t csxSetEventMask(clienthandlet ch, sockeventt *se);


     int32t csxGetEventMask(clienthandlet ch, sockeventt *se);


INTERFACE LEVEL
     Solaris DI Specific (Solaris DI)

PARAMETERS
     ch     Client handle returned from csxRegisterClient(9F).


     se     Pointer to a sockeventt structure


DESCRIPTION
     The function csxSetEventMask() sets the  client  or  global
     event mask for the client.


     The function csxGetEventMask() returns the client or global
     event mask for the client.


     csxRequestSocketMask(9F)  must  be  called  before  calling
     csxSetEventMask()  for  the  client  event  mask  for  this
     socket.

STRUCTURE MEMBERS
     The structure members of sockeventt are:

       uint32t   uint32t     /* attribute flags for call */
       uint32t   EventMask;   /* event mask to set or return */
       uint32t   Socket;      /* socket number if necessary */



     The fields are defined as follows:

     Attributes    This is a bit-mapped field that identifies the
                   type  of  event mask to be returned. The field
                   is defined as follows:



SunOS 5.11          Last change: 19 Jul 1996                    1






Kernel Functions for Drivers                 csxSetEventMask(9F)



                   CONFEVENTMASKGLOBAL     Client's     global
                                              event mask. If set,
                                              the client's global
                                              event    mask    is
                                              returned.


                   CONFEVENTMASKCLIENT     Client's      local
                                              event mask. If set,
                                              the client's  local
                                              event    mask    is
                                              returned.



     EventMask     This field is bit-mapped. Card  Services  per-
                   forms  event notification based on this field.
                   See  csxeventhandler(9E)  for  valid   event
                   definitions  and  for  additional  information
                   about handling events.


     Socket        Not used in Solaris, but for portability  with
                   other Card Services implementations, it should
                   be set to the logical socket number.


RETURN VALUES
     CSUCES                  Successful operation.


     CSBADHANDLE               Client handle is invalid.


     CSBADSOCKET               csxRequestSocketMask(9F)    not
                                 called                       for
                                 CONFEVENTMASKCLIENT.


     CSUNSUPORTEDFUNCTION     No PCMCIA hardware installed.


CONTEXT
     These functions may be called from user or kernel context.

SEE ALSO
     csxeventhandler(9E),               csxRegisterClient(9F),
     csxReleaseSocketMask(9F), csxRequestSocketMask(9F)


     PC Card 95 Standard,  PCMCIA/JEIDA




SunOS 5.11          Last change: 19 Jul 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™