NetBSD Problem Report #43014

From  Fri Mar 19 16:05:43 2010
Return-Path: <>
Received: from ( [])
	by (Postfix) with ESMTP id E233263B86C
	for <>; Fri, 19 Mar 2010 16:05:42 +0000 (UTC)
Message-Id: <>
Date: Fri, 19 Mar 2010 16:05:42 +0000 (UTC)
Subject: modstat could be more expandable
X-Send-Pr-Version: www-1.0

>Number:         43014
>Category:       kern
>Synopsis:       modstat could be more expandable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 19 16:10:01 +0000 2010
>Last-Modified:  Fri Mar 19 16:30:02 +0000 2010
>Originator:     Antti Kantee
For module class and source modstat(8) gets an integer from the
kernel and uses this to index a local string array to produce
a printable result.  This does not allow modstat to fully work
on later kernels which may have grown more classes and sources.

Change modctl() to send printable values from the kernel (use problib?).

Fix before 6.0 would be nice.

From: Antti Kantee <>
Subject: PR/43014 CVS commit: src/sbin/modstat
Date: Fri, 19 Mar 2010 16:25:33 +0000

 Module Name:	src
 Committed By:	pooka
 Date:		Fri Mar 19 16:25:33 UTC 2010

 Modified Files:
 	src/sbin/modstat: main.c

 Log Message:
 Avoid known unknown if the kernel presents us with an unknown
 unknown for module class and/or source.

 related to PR kern/43014

 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 src/sbin/modstat/main.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.