Blame agent/kernel.h

Packit fcad23
/***********************************************************************
Packit fcad23
   Net-SNMP - Simple Network Management Protocol agent library.
Packit fcad23
 ***********************************************************************/
Packit fcad23
/** @file kernel.h
Packit fcad23
 *     Net-SNMP Kernel Data Access Library - header.
Packit fcad23
 *     Provides access to kernel virtual memory for systems that
Packit fcad23
 *     support it.
Packit fcad23
 * @author   See README file for a list of contributors
Packit fcad23
 */
Packit fcad23
/* Copyrights:
Packit fcad23
 *     Copyright holders are listed in README file.
Packit fcad23
 *     Redistribution and use in source and binary forms, with or
Packit fcad23
 *     without modification, are permitted. License terms are specified
Packit fcad23
 *     in COPYING file distributed with the Net-SNMP package.
Packit fcad23
 */
Packit fcad23
/***********************************************************************/
Packit fcad23
Packit fcad23
extern int      init_kmem(const char *);
Packit fcad23
extern void     free_kmem(void);
Packit fcad23
#if HAVE_KVM_H
Packit fcad23
extern int      klookup(unsigned long, void *, size_t);
Packit fcad23
#define NETSNMP_KLOOKUP(x,y,z) klookup((unsigned long) x,y,z)
Packit fcad23
#else
Packit fcad23
#define NETSNMP_KLOOKUP(x,y,z) (0)
Packit fcad23
#endif
Packit fcad23
Packit fcad23
#if HAVE_KVM_H
Packit fcad23
#include <kvm.h>
Packit fcad23
extern kvm_t   *kd;
Packit fcad23
#endif
Packit fcad23
/***********************************************************************/