smiGetType, smiGetFirstType, smiGetNextType, smiGetParentType, smiGetTypeLine, smiGetFirstRange, smiGetNextRange, smiGetFirstNamedNumber, smiGetNextNamedNumber, smiGetTypeModule − SMI type information routines


#include <smi.h>

SmiType *smiGetType(SmiModule *smiModulePtr, char *type);

SmiType *smiGetFirstType(SmiModule *smiModulePtr);

SmiType *smiGetNextType(SmiType *smiTypePtr);

SmiType *smiGetParentType(SmiType *smiTypePtr);

int smiGetTypeLine(SmiType *smiTypePtr);

SmiRange *smiGetFirstRange(SmiType *smiTypePtr);

SmiRange *smiGetNextRange(SmiRange *smiRangePtr);

SmiNamedNumber *smiGetFirstNamedNumber(SmiType *smiTypePtr);

SmiNamedNumber *smiGetNextNamedNumber(SmiNamedNumber *smiNamedNumberPtr);

SmiModule *smiGetTypeModule(SmiType *smiTypePtr);

typedef struct SmiType {
SmiIdentifier name;
SmiBasetype basetype;
SmiDecl decl;
char *format;
SmiValue value;
char *units;
SmiStatus status;
char *description;
char *reference;
} SmiType;

typedef struct SmiNamedNumber {
SmiIdentifier name;
SmiValue value;
} SmiNamedNumber;

typedef struct SmiRange {
SmiValue minValue;
SmiValue maxValue;
} SmiRange;


These functions retrieve information on a type definition (SMIng) or a simple ASN.1 type definition (SMIv1/v2) or a TEXTUAL-CONVENTION definition (SMIv2). Base types may also be retrieved by these functions.

The smiGetType() function retrieves a struct SmiType that represents a type. Type may be either a fully qualified descriptor or a simple type name. If smiModulePtr is not NULL it used to limit the search to the given module. If the type is not found, smiGetType() returns NULL.

The smiGetFirstType() and smiGetNextType() functions are used to iteratively retrieve struct SmiTypes. smiGetFirstType() returns the first one defined in the module specified by smiModulePtr. Subsequent calls to smiGetNextType() return the following ones. If there are no more type definitions in the module NULL is returned.

The smiGetParentType() function retrieves a struct SmiType of the type from which the type specified by smiTypePtr is derived. If there is no parent type (i.e. the type specified by smiTypePtr is a base type), smiGetParentType() returns NULL.

Similarly, the smiGetFirstRange() and smiGetNextRange() functions are used to iteratively retrieve struct SmiRanges that represent range restrictions of the type specified by smiTypePtr, either size ranges of an octet string type or value ranges in case of a numeric type.

Similarly, the smiGetFirstNamedNumber() and smiGetNextNamedNumber() functions are used to iteratively retrieve struct SmiNamedNumbers that represent named numbers of the type specified by smiTypePtr, which has to be either a bit set or an enumeration type.

The smiGetTypeModule() function returns the module that defines the type given by struct SmiTypePtr.

The smiGetTypeLine() function returns the line number within the module where the type specified by smiTypePtr is defined.


/usr/include/smi.h SMI library header file


libsmi(3), smi_module(3), smi.h


(C) 1999-2001 Frank Strauss, TU Braunschweig, Germany <>

More Linux Commands

join(1) - join lines of two files on a common field.........
For each pair of input lines with identical join fields, write a line to standard output. The default join field is the first, delimited by whitespace. When FIL

Mail::SpamAssassin::Util::Progress(3pm) - Progress bar suppo
This module implements a progress bar for use in SpamAssassin scripts and modules. It allows you to create the progress bar, update it and print out the final r

tcl_platform(n) Variables used by Tcl ______________________
The following global variables are created and managed automatically by the Tcl library. Except where noted below, these variables should normally be treated as

hwclock(8) - query or set the hardware clock (RTC) (ManPage)
hwclock is a tool for accessing the Hardware Clock. You can display the current time, set the Hardware Clock to a specified time, set the Hardware Clock from th

ident(8) - nnrpd ident resolver (Admin - Linux man page)....
This program attempts to resolve usernames for nnrpd by using the ident protocol to query the remote host. It contacts the remote host using either IPv4 or IPv6

less(1) - opposite of more (Commands - Linux manual page)...
Less is a program similar to more 411toppm(1), but which allows backward movement in the file as well as forward movement. Also, less does not have to read the

y0f(3) - Bessel functions of the second kind (Man Page).....
The y0() and y1() functions return Bessel functions of x of the second kind of orders 0 and 1, respectively. The yn() function returns the Bessel function of x

bmp2tiff(1) create a TIFF file from a Microsoft Windows Devi
bmp2tiff converts a Microsoft Windows Device Independent Bitmap image file to TIFF. If several input BMP files are being specified the multipage TIFF output fil

vfs_aio_pthread(8) implement async I O in Samba vfs using a
This VFS module is part of the samba(7) suite. The aio_pthread VFS module enables asynchronous I/O for Samba on platforms which have the pthreads API available,

XIGrabFocusIn(3) - grab/ungrab enter or focus in events.....
XIGrabEnter and XIGrabFocusIn establish a passive grab. The modifier device for a enter grab is the paired master device if deviceid specifies a master pointer.

Tk_GetPixmap(3) - allocate and free pixmaps - Linux man page
These procedures are identical to the Xlib procedures XCreatePixmap and XFreePixmap, except that they have extra code to manage X resource identifiers so that i

pam_localuser(8) - require users to be listed in /etc/passwd
pam_localuser is a PAM module to help implementing site-wide login policies, where they typically include a subset of the networks users and a few accounts that

We can't live, work or learn in freedom unless the software we use is free.