Permalink
Browse files

Handle dorelease merge

  • Loading branch information...
gregkh committed Apr 6, 2012
2 parents 888b49e + 63346e6 commit 8f8ce40db51b23b25856992d1e33b39f4e3a9ba3
Showing with 44 additions and 16 deletions.
  1. +25 −0 chardev.txt
  2. +19 −16 stable/dorelease
View
@@ -62,3 +62,28 @@ from the cdev_init/add/del mess.
Unless we really want to force everyone to do this? It might be nicer...
+
+Proposal:
+ cdev * cdev_create(major, minor, fops, name, private);
+ cdev_destroy(* cdev);
+
+ Can break cdev_create() into two parts:
+ cdev_init()
+ cdev_register()
+ then after cdev_init(), can do "special" things if needed:
+ - different module owner
+ - different private
+ - anything else?
+
+ TODO - talk with Kay about better names
+
+ set inode pointer to be cdev *.
+ once have cdev *:
+ void *cdev_private(cdev *)
+ gets private back
+ - can get anything else back with accessor function, not
+ direct as we don't want to expose structure to
+ anything outside of the cdev core to prevent people
+ from poking with things directly. But is this really
+ good?
+
View
@@ -21,30 +21,33 @@ fi
REL_ARRAY=(${RELEASE//./ })
BASE=${REL_ARRAY[0]}.${REL_ARRAY[1]}.${REL_ARRAY[2]}
REL=${REL_ARRAY[3]}
+MAJOR=${REL_ARRAY[0]}
MINOR=${REL_ARRAY[2]}
LONGTERM=0
# see if this is a "longterm" kernel or not
-if [ $MINOR == "27" ]; then
- LONGTERM=1
-fi
-if [ $MINOR == "32" ]; then
- LONGTERM=1
-fi
-if [ $MINOR == "33" ]; then
- LONGTERM=1
-fi
-if [ $MINOR == "34" ]; then
- LONGTERM=1
-fi
-if [ $MINOR == "35" ]; then
- LONGTERM=1
+if [ $MAJOR == "2" ]; then
+ if [ $MINOR == "27" ]; then
+ LONGTERM=1
+ fi
+ if [ $MINOR == "32" ]; then
+ LONGTERM=1
+ fi
+ if [ $MINOR == "33" ]; then
+ LONGTERM=1
+ fi
+ if [ $MINOR == "34" ]; then
+ LONGTERM=1
+ fi
+ if [ $MINOR == "35" ]; then
+ LONGTERM=1
+ fi
fi
-#echo "longterm = $LONGTERM"
+#echo "major = $MAJOR, minor = $MINOR, longterm = $LONGTERM"
# 3.0 or 2.6?
VER="2.6"
-if [ ${REL_ARRAY[0]} == "3" ] ; then
+if [ ${MAJOR} == "3" ] ; then
# 3.x series
VER="3.0"
BASE=${REL_ARRAY[0]}.${REL_ARRAY[1]}

0 comments on commit 8f8ce40

Please sign in to comment.