From owner-freebsd-hackers Mon Jul 3 16:27:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id DAB6337B73C for ; Mon, 3 Jul 2000 16:27:06 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id RAA08050; Mon, 3 Jul 2000 17:27:04 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id RAA27427; Mon, 3 Jul 2000 17:26:50 -0600 (MDT) Message-Id: <200007032326.RAA27427@harmony.village.org> To: chris@calldei.com Subject: Re: dev to name Cc: Fox Anderson , freebsd-hackers In-reply-to: Your message of "Sun, 02 Jul 2000 15:01:16 CDT." <20000702150116.E66762@holly.calldei.com> References: <20000702150116.E66762@holly.calldei.com> <395FC6CB.7080400@mail.ru> Date: Mon, 03 Jul 2000 17:26:50 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000702150116.E66762@holly.calldei.com> Chris Costello writes: : On Sunday, July 02, 2000, Fox Anderson wrote: : > Hi. : > How can i find out the name of device file by device major/minor? : : The devtoname() function. ``man devtoname'' This is a kernel only function. The only way to do it in user land is to loop through the /dev/ directory and hope that you can find a match. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message