From ca9093b327311b17a6c77820abb0c66abf6a94f4 Mon Sep 17 00:00:00 2001 From: sobomax Date: Mon, 2 Oct 2000 14:14:07 +0000 Subject: 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 --- share/examples/kld/cdev/module/cdev.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'share/examples/kld/cdev/module/cdev.h') 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 -- cgit v1.1