summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/cdev/module/cdev.h
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-10-02 14:14:07 +0000
committersobomax <sobomax@FreeBSD.org>2000-10-02 14:14:07 +0000
commitca9093b327311b17a6c77820abb0c66abf6a94f4 (patch)
treeb7b5dd86df52d6d28fcd6420e78651ff948cf748 /share/examples/kld/cdev/module/cdev.h
parentf35f4e93b21d23ac9951fb2a706ba5bb5c2bd00a (diff)
downloadFreeBSD-src-ca9093b327311b17a6c77820abb0c66abf6a94f4.zip
FreeBSD-src-ca9093b327311b17a6c77820abb0c66abf6a94f4.tar.gz
Fix cdev kld example after it has been broken for year or so. Also extend list
of supported operations by example read() and write() operations. Inspired by: http://www.daemonnews.org/200010/blueprints.html PR: 16173 Submitted by: sobomax
Diffstat (limited to 'share/examples/kld/cdev/module/cdev.h')
-rw-r--r--share/examples/kld/cdev/module/cdev.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/share/examples/kld/cdev/module/cdev.h b/share/examples/kld/cdev/module/cdev.h
index 88b3cb9..b09e53a 100644
--- a/share/examples/kld/cdev/module/cdev.h
+++ b/share/examples/kld/cdev/module/cdev.h
@@ -65,13 +65,17 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ *
+ * $FreeBSD$
*/
#ifndef __CDEV_H_
#define __CDEV_H_
-d_open_t mydev_open;
-d_close_t mydev_close;
-d_ioctl_t mydev_ioctl;
+d_open_t mydev_open;
+d_close_t mydev_close;
+d_ioctl_t mydev_ioctl;
+d_read_t mydev_read;
+d_write_t mydev_write;
#endif
OpenPOWER on IntegriCloud