NetBSD Problem Report #44127

From uebayasi@tombi.co.jp  Mon Nov 22 04:15:56 2010
Return-Path: <uebayasi@tombi.co.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 7953363BAE8
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 22 Nov 2010 04:15:56 +0000 (UTC)
Message-Id: <20101122041704.890527FCD@bighill.tombi.co.jp>
Date: Mon, 22 Nov 2010 13:17:04 +0900 (JST)
From: uebayasi@tombi.co.jp
Reply-To: uebayasi@tombi.co.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: bus_space_mmap(9) "int prot" is not documented
X-Send-Pr-Version: 3.95

>Number:         44127
>Category:       kern
>Synopsis:       bus_space_mmap(9) "int prot" is not documented
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 22 04:20:00 +0000 2010
>Last-Modified:  Mon Nov 22 06:45:01 +0000 2010
>Originator:     Masao Uebayashi
>Release:        NetBSD 5.99.40
>Organization:
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
>Environment:
>Description:
	bus_space_mmap(9) function takes an argument "int prot".
	Its definition is not clearly documented.  Possiblely used
	constants (VM_PROT_*) are not defined in machine/bus.h.
>How-To-Repeat:
>Fix:
	Redesign bus_space_mmap(9).

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/44127: bus_space_mmap(9) "int prot" is not documented
Date: Mon, 22 Nov 2010 04:41:19 +0000

 On Mon, Nov 22, 2010 at 04:20:00AM +0000, uebayasi@tombi.co.jp wrote:
  > >Description:
  > 	bus_space_mmap(9) function takes an argument "int prot".
  > 	Its definition is not clearly documented.  Possiblely used
  > 	constants (VM_PROT_*) are not defined in machine/bus.h.
  > >Fix:
  > 	Redesign bus_space_mmap(9).

 That seems like an overreaction.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Masao Uebayashi <uebayasi@tombi.co.jp>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/44127: bus_space_mmap(9) "int prot" is not documented
Date: Mon, 22 Nov 2010 15:42:16 +0900

 On Mon, Nov 22, 2010 at 04:45:03AM +0000, David Holland wrote:
 > The following reply was made to PR kern/44127; it has been noted by GNATS.
 > 
 > From: David Holland <dholland-bugs@netbsd.org>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: kern/44127: bus_space_mmap(9) "int prot" is not documented
 > Date: Mon, 22 Nov 2010 04:41:19 +0000
 > 
 >  On Mon, Nov 22, 2010 at 04:20:00AM +0000, uebayasi@tombi.co.jp wrote:
 >   > >Description:
 >   > 	bus_space_mmap(9) function takes an argument "int prot".
 >   > 	Its definition is not clearly documented.  Possiblely used
 >   > 	constants (VM_PROT_*) are not defined in machine/bus.h.
 >   > >Fix:
 >   > 	Redesign bus_space_mmap(9).
 >  
 >  That seems like an overreaction.

 Providing VM_PROT_* in uvm/uvm_prot.h would be fine.  Probably
 sys/param.h or sys/bus.h?

 What namespace should VM_PROT_* belong to?

NetBSD Home
NetBSD PR Database Search

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