Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/gehenna-devsw]: src/sys/netsmb Add netsmb_cdevsw



details:   https://anonhg.NetBSD.org/src/rev/226e6e2b87fe
branches:  gehenna-devsw
changeset: 527033:226e6e2b87fe
user:      gehenna <gehenna%NetBSD.org@localhost>
date:      Thu May 16 03:52:37 2002 +0000

description:
Add netsmb_cdevsw

diffstat:

 sys/netsmb/smb_dev.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r fbd627c389ad -r 226e6e2b87fe sys/netsmb/smb_dev.c
--- a/sys/netsmb/smb_dev.c      Thu May 16 03:51:23 2002 +0000
+++ b/sys/netsmb/smb_dev.c      Thu May 16 03:52:37 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_dev.c,v 1.6 2002/01/08 19:52:16 deberg Exp $       */
+/*     $NetBSD: smb_dev.c,v 1.6.8.1 2002/05/16 03:52:37 gehenna Exp $  */
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -101,7 +101,17 @@
 */
 
 #ifdef __NetBSD__
-cdev_decl(nsmb_dev_);
+dev_type_open(nsmb_dev_open);
+dev_type_close(nsmb_dev_close);
+dev_type_read(nsmb_dev_read);
+dev_type_write(nsmb_dev_write);
+dev_type_ioctl(nsmb_dev_ioctl);
+dev_type_poll(nsmb_dev_poll);
+
+const struct cdevsw netsmb_cdevsw = {
+       nsmb_dev_open, nsmb_dev_close, nsmb_dev_read, nsmb_dev_write,
+       nsmb_dev_ioctl, nostop, notty, nsmb_dev_poll, nommap,
+};
 #else
 static struct cdevsw nsmb_cdevsw = {
        /* open */      nsmb_dev_open,



Home | Main Index | Thread Index | Old Index