From owner-cvs-src-old@FreeBSD.ORG Thu Oct 7 18:01:46 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09E571065670 for ; Thu, 7 Oct 2010 18:01:46 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 697C68FC1B for ; Thu, 7 Oct 2010 18:01:45 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o97I1jak085033 for ; Thu, 7 Oct 2010 18:01:45 GMT (envelope-from jh@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o97I1jEG085032 for cvs-src-old@freebsd.org; Thu, 7 Oct 2010 18:01:45 GMT (envelope-from jh@repoman.freebsd.org) Message-Id: <201010071801.o97I1jEG085032@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jh@repoman.freebsd.org using -f From: Jaakko Heinonen Date: Thu, 7 Oct 2010 18:00:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/man/man9 make_dev.9 src/sys/kern kern_conf.c src/sys/sys conf.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 18:01:46 -0000 jh 2010-10-07 18:00:55 UTC FreeBSD src repository Modified files: share/man/man9 make_dev.9 sys/kern kern_conf.c sys/sys conf.h Log: SVN rev 213526 on 2010-10-07 18:00:55Z by jh Check the device name validity on device registration. A new function prep_devname() sanitizes a device name by removing leading and redundant sequential slashes. The function returns an error for names which already exist or are considered invalid. A new flag MAKEDEV_CHECKNAME for make_dev_p(9) and make_dev_credf(9) indicates that the caller is prepared to handle an error related to the device name. An invalid name triggers a panic if the flag is not specified. Document the MAKEDEV_CHECKNAME flag in the make_dev(9) manual page. Idea from: kib Reviewed by: kib Revision Changes Path 1.32 +16 -7 src/share/man/man9/make_dev.9 1.243 +87 -27 src/sys/kern/kern_conf.c 1.259 +6 -5 src/sys/sys/conf.h