The
kldstat()
system call writes the info for the file referred to by
fileid
into
stat.
struct kld_file_stat {
int version; /* set to sizeof(struct kld_file_stat) */
char name[MAXPATHLEN];
int refs;
int id;
caddr_t address;
size_t size;
char pathname[MAXPATHLEN];
};
version
|
This field is set to the size of the structure mentioned above by the code
calling
kldstat(),
and not
kldstat()
itself.
|
name
|
The name of the file referred to by
fileid.
|
refs
|
The number of modules referenced by
fileid.
|
id
|
The id of the file specified in
fileid.
|
address
|
The load address of the kld file.
|
size
|
The amount of memory in bytes allocated by the file.
|
pathname
|
The full name of the file referred to by
fileid,
including the path.
|