pidentd  3.0.19
About: implementation of the RFC1413 identification server (more or less complete rewrite compared to version 2)
  Fossies Dox: pidentd-3.0.19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

pkvm.h
Go to the documentation of this file.
1 /*
2 ** pkvm.h - Partial Kernel "Virtual" Memory access function emulation.
3 **
4 ** Copyright (c) 1997 Peter Eriksson <pen@lysator.liu.se>
5 **
6 ** This program is free software; you can redistribute it and/or
7 ** modify it as you wish - as long as you don't claim that you wrote
8 ** it.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 */
14 
15 #ifndef KVM_H
16 #define KVM_H
17 
18 typedef struct
19 {
20  int fd;
21  char *namelist;
22 } kvm_t;
23 
24 
25 extern kvm_t *kvm_open(const char *namelist,
26  const char *corefile,
27  const char *swapfile,
28  int flag,
29  const char *errstr);
30 
31 extern int kvm_close(kvm_t *kd);
32 
33 struct nlist;
34 extern int kvm_nlist(kvm_t *kd, struct nlist *nl);
35 
36 extern ssize_t kvm_read(kvm_t *kd,
37  off_t addr,
38  void *buf,
39  size_t len);
40 #endif
kvm_nlist
int kvm_nlist(kvm_t *kd, struct nlist *nl)
kvm_t
Definition: pkvm.h:18
kvm_close
int kvm_close(kvm_t *kd)
kvm_open
kvm_t * kvm_open(const char *namelist, const char *corefile, const char *swapfile, int flag, const char *errstr)
kvm_t::fd
int fd
Definition: pkvm.h:20
kvm_t::namelist
char * namelist
Definition: pkvm.h:21
kvm_read
ssize_t kvm_read(kvm_t *kd, off_t addr, void *buf, size_t len)