Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Call module "stat" entry where appropriate.



details:   https://anonhg.NetBSD.org/src/rev/d5b694db0873
branches:  trunk
changeset: 504176:d5b694db0873
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Feb 24 10:16:46 2001 +0000

description:
Call module "stat" entry where appropriate.
Problem reported and patch provided by SATOU Takashi in kern/12037.

diffstat:

 sys/kern/kern_lkm.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 8b3573a6b9b8 -r d5b694db0873 sys/kern/kern_lkm.c
--- a/sys/kern/kern_lkm.c       Sat Feb 24 09:58:43 2001 +0000
+++ b/sys/kern/kern_lkm.c       Sat Feb 24 10:16:46 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_lkm.c,v 1.54 2000/12/08 19:42:12 jdolecek Exp $   */
+/*     $NetBSD: kern_lkm.c,v 1.55 2001/02/24 10:16:46 jdolecek Exp $   */
 
 /*
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -523,6 +523,9 @@
                        break;
                }
 
+               if ((error = (*curp->entry)(curp, LKM_E_STAT, curp->ver)))
+                       break;
+
                /*
                 * Copy out stat information for this module...
                 */



Home | Main Index | Thread Index | Old Index