diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-10-02 14:14:07 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-10-02 14:14:07 +0000 |
commit | 7320fd3a3003e601d784b9b0c3780ae5875bc45a (patch) | |
tree | b5184959884769a8211d25c133ed53baa7de7b9c /share/examples/kld/cdev/module/cdev.h | |
parent | c7f95f537217b2412d9f2b196a9fa0612ffb34c2 (diff) |
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
Notes
Notes:
svn path=/head/; revision=66549
Diffstat (limited to 'share/examples/kld/cdev/module/cdev.h')
-rw-r--r-- | share/examples/kld/cdev/module/cdev.h | 10 |
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 88b3cb908896..b09e53ae3dba 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 |