Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

kvm_getfiles(3) [netbsd man page]

KVM_GETFILES(3) 					   BSD Library Functions Manual 					   KVM_GETFILES(3)

NAME
kvm_getfiles -- survey open files LIBRARY
Kernel Data Access Library (libkvm, -lkvm) SYNOPSIS
#include <kvm.h> #include <sys/kinfo.h> #define _KERNEL #include <sys/file.h> #undef _KERNEL char * kvm_getfiles(kvm_t *kd, int op, int arg, int *cnt); DESCRIPTION
kvm_getfiles() returns a (sub-)set of the open files in the kernel indicated by kd. The op and arg arguments constitute a predicate which limits the set of files returned. No predicates are currently defined. The number of processes found is returned in the reference parameter cnt. The files are returned as a contiguous array of file structures, preceded by the address of the first file entry in the kernel. This memory is owned by kvm and is not guaranteed to be persistent across subsequent kvm library calls. Data should be copied out if it needs to be saved. RETURN VALUES
kvm_getfiles() will return NULL on failure. SEE ALSO
kvm(3), kvm_close(3), kvm_geterr(3), kvm_nlist(3), kvm_open(3), kvm_openfiles(3), kvm_read(3), kvm_write(3) BUGS
This routine does not belong in the kvm interface. BSD
April 19, 1994 BSD

Check Out this Related Man Page

KVM_GETERR(3)						   BSD Library Functions Manual 					     KVM_GETERR(3)

NAME
kvm_geterr -- get error message on kvm descriptor LIBRARY
Kernel Data Access Library (libkvm, -lkvm) SYNOPSIS
#include <kvm.h> char * kvm_geterr(kvm_t *kd); DESCRIPTION
This function returns a string describing the most recent error condition on the descriptor kd. The results are undefined if the most recent kvm(3) library call did not produce an error. The string returned is stored in memory owned by kvm(3) so the message should be copied out and saved elsewhere if necessary. SEE ALSO
kvm(3), kvm_close(3), kvm_getargv(3), kvm_getenvv(3), kvm_getprocs(3), kvm_nlist(3), kvm_open(3), kvm_openfiles(3), kvm_read(3), kvm_write(3) BUGS
This routine cannot be used to access error conditions due to a failed kvm_openfiles() call, since failure is indicated by returning a NULL descriptor. Therefore, errors on open are output to the special error buffer passed to kvm_openfiles(). This option is not available to kvm_open(). BSD
June 4, 1993 BSD
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file number limits in Solaris 8

What is the kernel parameter ( or other) that sets the maximum number of open files by the o/s (3 Replies)
Discussion started by: blp001
3 Replies

2. Solaris

kvm issue for console configuration

(0 Replies)
Discussion started by: vkav
0 Replies

3. Hardware

kvm issue for console configuration

Hi i am new to unix , i need to do console configuration on aix p520 there is no HMC device, i tried doing connecting through null cable via hyper terminal still no result, team says kvm issue so what is kvm issue.... (2 Replies)
Discussion started by: vkav
2 Replies

4. UNIX for Dummies Questions & Answers

i am new to unix so what is keon and non-keon servers

what is keon and non-keon servers? why ae we using it? what is advantage ? what is kvm(kernel virtual machine ) or( keyboard video monitor)? what the difference between them why are they used? i would thank if i get answers to these?:) (1 Reply)
Discussion started by: vkav
1 Replies

5. UNIX for Dummies Questions & Answers

Starting terminal with shortcut key combination

How can the shortcut keys be defined that would open up a terminal window? When using a kvm switch, the mouse sometimes does not work, but the keyboard does, and by opening up a terminal window using a shortcut key combination, the mouse can be restarted by entering the predefined mouserestart... (0 Replies)
Discussion started by: figaro
0 Replies