The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

csx_Error2Text (9)
  • >> csx_Error2Text (9) ( Solaris man: Ядро )
  •  

    NAME

    csx_Error2Text - convert error return codes to text strings
     
    

    SYNOPSIS

    #include <sys/pccard.h> 
    
    
    
    int32_t csx_Error2Text(error2text_t *er);
    

     

    INTERFACE LEVEL

    Solaris DDI Specific (Solaris DDI)  

    PARAMETERS

    er

    Pointer to an error2text_t structure.

     

    DESCRIPTION

    This function is a Solaris-specific extension that provides a method for clients to convert Card Services error return codes to text strings.  

    STRUCTURE MEMBERS

    The structure members of error2text_t are:

    uint32_t     item;                             /*the error code*/
    char         test[CS_ERROR_MAX_BUFSIZE};       /*the error code*/
    

    A pointer to the text for the Card Services error return code in the item field is returned in the text field if the error return code is found. The client is not responsible for allocating a buffer to hold the text. If the Card Services error return code specified in the item field is not found, the text field will be set to a string of the form:

    "{unknown Card Services return code}"  

    RETURN VALUES

    CS_SUCCESS

    Successful operation.

    CS_UNSUPPORTED_FUNCTION

    No PCMCIA hardware installed.

     

    CONTEXT

    This function may be called from user or kernel context.  

    EXAMPLES

    Example 1 : Using the csxError2Text function

    if ((ret = csx_RegisterClient(&client_handle, &
               client_reg)) != CS_SUCCESS)
    {
      error2text_t error2text;
      error2text.item = ret;
      csx_Error2Text(&error2text);
      cmn_err(CE_CONT, "RegisterClient failed %s (0x%x)", 
               error2text.text, ret);
    }
    

     

    SEE ALSO

    csx_Event2Text(9F)

    PC Card 95 Standard, PCMCIA/JEIDA


     

    Index

    NAME
    SYNOPSIS
    INTERFACE LEVEL
    PARAMETERS
    DESCRIPTION
    STRUCTURE MEMBERS
    RETURN VALUES
    CONTEXT
    EXAMPLES
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру