From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756083Ab2C0Uxc (ORCPT ); Tue, 27 Mar 2012 16:53:32 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:56720 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756000Ab2C0Ux0 (ORCPT ); Tue, 27 Mar 2012 16:53:26 -0400 Date: Tue, 27 Mar 2012 13:53:20 -0700 From: Greg KH To: Li Haifeng Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: To built-in Driver, When the corresponding node under /dev created? Message-ID: <20120327205320.GA20151@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2012 at 02:39:37PM +0800, Li Haifeng wrote: > As you know, the node under /dev are managed by udevd daemon. Not always, usually the node is created by devtmpfs on most modern distros. > But to the built-in driver module, when the module is probed in kernel > space, udevd daemon doesn't running. So, to ttyS node, when the > built-in driver module was probed, when was the /dev/ttyS created? devtmpfs does it. Also, look at your distro startup code, it sets things up properly when userspace starts up and has udev go through things and set up the nodes then. good luck, greg k-h