NLIST(3) BSD Library Functions Manual NLIST(3)NAME
nlist -- retrieve symbol table name list from an executable file
nlist(const char *filename, struct nlist *nl);
The nlist() function retrieves name list entries from the symbol table of an executable file. (See <mach-o/nlist.h>) The argument nl is set
to reference the beginning of the list. The list is preened of binary and invalid data; if an entry in the name list is valid, the n_type
and n_value for the entry are copied into the list referenced by nl. No other data is copied. The last entry in the list is always NULL.
The number of invalid entries is returned if successful; otherwise, if the file filename does not exist or is not executable, the returned
value is -1.
SEE ALSO Mach-O(5)HISTORY
A nlist() function appeared in Version 6 AT&T UNIX.
Darwin April 19, 1994 Darwin
Check Out this Related Man Page
KVM_NLIST(3) BSD Library Functions Manual KVM_NLIST(3)NAME
kvm_nlist -- retrieve symbol table names from a kernel image
Kernel Data Access Library (libkvm, -lkvm)
kvm_nlist(kvm_t *kd, struct nlist *nl);
The kvm_nlist() function retrieves the symbol table entries indicated by the name list argument nl. This argument points to an array of
nlist structures, terminated by an entry whose n_name field is NULL (see nlist(3)). Each symbol is looked up using the n_name field, and if
found, the corresponding n_type and n_value fields are filled in. These fields are set to 0 if the symbol is not found.
The kldsym(2) system call is used to locate the symbol. This is a less than perfect emulation of the nlist values but has the advantage of
being aware of kernel modules and is reasonably fast.
The kvm_nlist() function returns the number of invalid entries found. If the kernel symbol table was unreadable, -1 is returned.
SEE ALSO kldsym(2), kvm(3), kvm_close(3), kvm_getargv(3), kvm_getenvv(3), kvm_geterr(3), kvm_getprocs(3), kvm_open(3), kvm_openfiles(3), kvm_read(3),
kvm_write(3)BSD June 4, 1993 BSD
I have encountered a problem that I cannot resolve. We have two
different AIX 5.3 boxes. On one box, regardless of whether it is
booted in 32 bit mode or 64 bit mode, I can obtain kernel metrics (i.e,
using kernel symbol names sysinfo or avenrun) via the nlink or nlink64
system call. On... (0 Replies)
I have a AIX 5.3 Installation on the Power5 processor. I am using the knlist API for getting the details of the CPU details like user cpu, kernel cpu, idle cpu and wait cpu. My code is working fine on other Installations of AIX like PowerPC_POWER4 but it is giving wrong values on Power5... (0 Replies)
I have written an application which reports the CPU information like user cpu%, sys cpu%, idle cpu% and wait cpu%. The application is built on an AIX 5.1 machine. The appliaction runs fine on AIX 5.1 and 5.2 and their results match with that of the topas command. But when I run the... (1 Reply)
We are using HP-UX. Previously we were using ftp to connect to remote list the text file name and copy into local file with .ls extension. For this we are using nlist RBOBAR*.txt DMSFT.ls now we want to convert the integration with sftp. So In sftp nlist command is not supported. How can we... (8 Replies)