Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src grab major 203 for the iSCSI communications device (between ...
details: https://anonhg.NetBSD.org/src/rev/f58fe392fcb5
branches: trunk
changeset: 771316:f58fe392fcb5
user: agc <agc%NetBSD.org@localhost>
date: Sat Nov 19 16:41:55 2011 +0000
description:
grab major 203 for the iSCSI communications device (between kernel
driver and /sbin/iscsid)
diffstat:
etc/MAKEDEV.tmpl | 10 +++++++++-
sys/conf/majors | 3 ++-
sys/dev/iscsi/iscsi.h | 4 ++--
3 files changed, 13 insertions(+), 4 deletions(-)
diffs (65 lines):
diff -r e72fe2b4ea6b -r f58fe392fcb5 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl Sat Nov 19 16:11:24 2011 +0000
+++ b/etc/MAKEDEV.tmpl Sat Nov 19 16:41:55 2011 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV.tmpl,v 1.147 2011/11/08 19:36:30 apb Exp $
+# $NetBSD: MAKEDEV.tmpl,v 1.148 2011/11/19 16:41:55 agc Exp $
#
# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -289,6 +289,9 @@
# wsfont* console font control
# wsmux* wscons event multiplexor
# xenevt Xen event interface
+#
+# iSCSI communication devices
+# iscsi* iSCSI driver and /sbin/iscsid communication
#
@@ -2092,6 +2095,11 @@
makedir zpool 755
;;
+iscsi[0-9]*)
+ unit=${i#iscsi}
+ mkdev iscsi${unit} c %iscsi_chr% 0 600
+ ;;
+
midevend)
%MI_DEVICES_END%
local)
diff -r e72fe2b4ea6b -r f58fe392fcb5 sys/conf/majors
--- a/sys/conf/majors Sat Nov 19 16:11:24 2011 +0000
+++ b/sys/conf/majors Sat Nov 19 16:41:55 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: majors,v 1.59 2011/10/15 10:18:24 tron Exp $
+# $NetBSD: majors,v 1.60 2011/11/19 16:41:56 agc Exp $
#
# Device majors for Machine-Independent drivers.
#
@@ -48,4 +48,5 @@
device-major dtv char 200 dtv
device-major iic char 201 iic
device-major filemon char 202 filemon
+device-major iscsi char 203 iscsi
diff -r e72fe2b4ea6b -r f58fe392fcb5 sys/dev/iscsi/iscsi.h
--- a/sys/dev/iscsi/iscsi.h Sat Nov 19 16:11:24 2011 +0000
+++ b/sys/dev/iscsi/iscsi.h Sat Nov 19 16:41:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi.h,v 1.2 2011/10/29 16:04:39 christos Exp $ */
+/* $NetBSD: iscsi.h,v 1.3 2011/11/19 16:41:56 agc Exp $ */
/*-
* Copyright (c) 2004,2006,2011 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#ifndef _ISCSI_H
#define _ISCSI_H
-#define ISCSI_DEV_MAJOR 202
+#define ISCSI_DEV_MAJOR 203
#define ISCSI_STRING_LENGTH (223+1)
#define ISCSI_ADDRESS_LENGTH (255+1)
Home |
Main Index |
Thread Index |
Old Index