From owner-freebsd-current@FreeBSD.ORG Sun Dec 7 09:40:12 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8BFE16A4CF; Sun, 7 Dec 2003 09:40:12 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0237A43FD7; Sun, 7 Dec 2003 09:40:11 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) hB7He2vq008358 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 7 Dec 2003 18:40:07 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id hB7He1WK057577 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Dec 2003 18:40:01 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id hB7He02u056675; Sun, 7 Dec 2003 18:40:00 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.10/Submit) id hB7He06h056674; Sun, 7 Dec 2003 18:40:00 +0100 (CET) (envelope-from ticso) Date: Sun, 7 Dec 2003 18:40:00 +0100 From: Bernd Walter To: freebsd-current@freebsd.org Message-ID: <20031207173959.GE42518@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i Subject: major number leak with modules? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2003 17:40:12 -0000 The situation was the following during driver development. It's an USB driver and kldload'ed. A plugged in device got major 247 for the nodes it created. On unplugging the nodes were destroyed. kldunloading the driver and kldloading the next revision created nodes with major 246 for new devices. Do we have a leak with major numbers or is the old major number free after last destroy_dev and assigning algorithm just took the next. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de