Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/rdma/krping/krping_dev.c
Show All 12 Lines | |||||
#include <sys/proc.h> | #include <sys/proc.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <machine/stdarg.h> | #include <machine/stdarg.h> | ||||
#include "krping.h" | #include "krping.h" | ||||
#define BUFFERSIZE 512 | #define BUFFERSIZE 512 | ||||
SYSCTL_NODE(_dev, OID_AUTO, krping, CTLFLAG_RW, 0, "kernel rping module"); | SYSCTL_NODE(_dev, OID_AUTO, krping, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"kernel rping module"); | |||||
int krping_debug = 0; | int krping_debug = 0; | ||||
SYSCTL_INT(_dev_krping, OID_AUTO, debug, CTLFLAG_RW, &krping_debug, 0 , ""); | SYSCTL_INT(_dev_krping, OID_AUTO, debug, CTLFLAG_RW, &krping_debug, 0 , ""); | ||||
/* Function prototypes */ | /* Function prototypes */ | ||||
static d_open_t krping_open; | static d_open_t krping_open; | ||||
static d_close_t krping_close; | static d_close_t krping_close; | ||||
static d_read_t krping_read; | static d_read_t krping_read; | ||||
Show All 12 Lines |