summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/cdev/module/cdev.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-06-27 12:44:44 +0000
committerdfr <dfr@FreeBSD.org>1999-06-27 12:44:44 +0000
commit633d8b5f5a152bf3fdda8daf986ec47105ae879b (patch)
treeecbd2f08cc1b76af7b0b0b9ba217f4d4fcab1030 /share/examples/kld/cdev/module/cdev.h
parent6d9ab211ebee6249e6a59d14305833c9ec03048c (diff)
downloadFreeBSD-src-633d8b5f5a152bf3fdda8daf986ec47105ae879b.zip
FreeBSD-src-633d8b5f5a152bf3fdda8daf986ec47105ae879b.tar.gz
* Tidy up a few things and fix some more warnings.
* Change the devsw declaration to standard form and add missing fields * Change the filename from cdev_mod.ko to cdev.ko
Diffstat (limited to 'share/examples/kld/cdev/module/cdev.h')
-rw-r--r--share/examples/kld/cdev/module/cdev.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/share/examples/kld/cdev/module/cdev.h b/share/examples/kld/cdev/module/cdev.h
index 34c8235..88b3cb9 100644
--- a/share/examples/kld/cdev/module/cdev.h
+++ b/share/examples/kld/cdev/module/cdev.h
@@ -70,29 +70,8 @@
#ifndef __CDEV_H_
#define __CDEV_H_
-#include <sys/conf.h>
-
d_open_t mydev_open;
d_close_t mydev_close;
d_ioctl_t mydev_ioctl;
-#define CDEV_MAJOR 32
-
-static struct cdevsw my_devsw = {
- mydev_open,
- mydev_close,
- noread,
- nowrite,
- mydev_ioctl,
- nostop,
- noreset,
- nodevtotty,
- NULL,
- nommap,
- NULL,
- "cdev",
- NULL,
- CDEV_MAJOR
-};
-
#endif
OpenPOWER on IntegriCloud