forked from net-snmp/net-snmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkernel.h
31 lines (29 loc) · 1.14 KB
/
kernel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/***********************************************************************
Net-SNMP - Simple Network Management Protocol agent library.
***********************************************************************/
/** @file kernel.h
* Net-SNMP Kernel Data Access Library - header.
* Provides access to kernel virtual memory for systems that
* support it.
* @author See README file for a list of contributors
*/
/* Copyrights:
* Copyright holders are listed in README file.
* Redistribution and use in source and binary forms, with or
* without modification, are permitted. License terms are specified
* in COPYING file distributed with the Net-SNMP package.
*/
/***********************************************************************/
extern int init_kmem(const char *);
extern void free_kmem(void);
#ifdef HAVE_KVM_H
extern int klookup(unsigned long, void *, size_t);
#define NETSNMP_KLOOKUP(x,y,z) klookup((unsigned long) x,y,z)
#else
#define NETSNMP_KLOOKUP(x,y,z) (0)
#endif
#ifdef HAVE_KVM_H
#include <kvm.h>
extern kvm_t *kd;
#endif
/***********************************************************************/