The OpenNET Project / Index page

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

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

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

nvlist_lookup_nvpair (3)
  • >> nvlist_lookup_nvpair (3) ( Solaris man: Библиотечные вызовы )
  • nvlist_lookup_nvpair (9) ( Solaris man: Ядро )
  •  

    NAME

    nvlist_lookup_nvpair, nvlist_exists - lookup named pairs
     
    

    SYNOPSIS

    cc [ flag... ] file... -lnvpair [ library... ]
    #include <libnvpair.h>
    
    int nvlist_lookup_nvpair(nvlist_t *nvl, const char *name,
        nvpair_t **nvp);
    

    boolean_t nvlist_exists(nvlist_t *nvl, const char *name);
    

     

    DESCRIPTION

    The nvlist_lookup_nvpair() function returns the nvpair with the matching name, regardless of type. It is valid only for lists allocated with NV_UNIQUE_NAME. See nvlist_alloc(3NVPAIR).

    The nvlist_exists() function returns success if any nvpair exists with the given name. It is valid for all types of lists.  

    RETURN VALUES

    The nvlist_lookup_nvpair() function returns 0 on success and an error value on failure.

    The nvlist_exists() function returns B_TRUE if an nvpair with the given name exists and B_FALSE otherwise.  

    ERRORS

    The nvlist_lookup_nvpair() function will fail if:

    EINVAL

    There is an invalid argument.

    ENOENT

    No matching name-value pair is found.

    ENOTSUP

    The list was not allocated with NV_UNIQUE_NAME.

     

    ATTRIBUTES

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPEATTRIBUTE VALUE

    Interface StabilityCommitted

    MT-Level

     

    SEE ALSO

    libnvpair(3LIB), nvlist_alloc(3NVPAIR), attributes(5), nvlist_lookup_nvpair(9F)


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    ERRORS
    ATTRIBUTES
    SEE ALSO


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




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

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