Module Name: src Committed By: pgoyette Date: Sat Nov 21 03:34:28 UTC 2015
Modified Files: src/sys/dev/filemon: filemon.c Log Message: The correct default return value from a module's xxx_modcmd() routine is ENOTTY, not EOPNOTSUPP! The former will allow the module to be auto-unloaded, while the latter will prevent it. Note that manual unloading of the filemon module is unaffected, as that is controlled by actual usage of the module. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/dev/filemon/filemon.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/filemon/filemon.c diff -u src/sys/dev/filemon/filemon.c:1.15 src/sys/dev/filemon/filemon.c:1.16 --- src/sys/dev/filemon/filemon.c:1.15 Fri Nov 20 02:58:19 2015 +++ src/sys/dev/filemon/filemon.c Sat Nov 21 03:34:28 2015 @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.15 2015/11/20 02:58:19 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: filemon.c,v 1.16 2015/11/21 03:34:28 pgoyette Exp $"); #include <sys/param.h> #include <sys/kernel.h> @@ -426,7 +426,7 @@ filemon_modcmd(modcmd_t cmd, void *data) break; default: - error = EOPNOTSUPP; + error = ENOTTY; break; }