From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 561ABC433E0 for ; Wed, 17 Mar 2021 17:06:12 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D524164E98 for ; Wed, 17 Mar 2021 17:06:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D524164E98 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gpanders.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lMZcR-0005K0-2s; Wed, 17 Mar 2021 13:06:03 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lMZcQ-0005Jm-77 for kernelnewbies@kernelnewbies.org; Wed, 17 Mar 2021 13:06:02 -0400 Received: from localhost (c-73-228-7-205.hsd1.nm.comcast.net [73.228.7.205]) (Authenticated sender: greg@gpanders.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 26B47200004; Wed, 17 Mar 2021 17:05:58 +0000 (UTC) Date: Wed, 17 Mar 2021 11:05:56 -0600 From: Gregory Anders To: Greg KH , kernelnewbies@kernelnewbies.org Subject: Re: Device file not appearing Message-ID: Mail-Followup-To: Greg KH , kernelnewbies@kernelnewbies.org References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, 17 Mar 2021 10:56:34 -0600, Gregory Anders wrote: >I switched over to using the miscdevice API and the situation is the >same. Nothing under /dev, but I can see my device under /sys/dev/char >(it now also exists under /sys/devices/virtual/misc/, as expected). > >I verified that devtmpfs is enabled in the kernel config >(CONFIG_DEVTMPFS=y and CONFIG_DEVTMPFS_MOUNT=y) and also see that it >is mounted on /dev: > > # cat /proc/mounts > root@xilinx-kcu105-2020_2:~# cat /proc/mounts > 192.168.0.116:/data/nfs/root / nfs rw,relatime,vers=3,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.116,mountvers=3,mountproto=tcp,local_lock=all,addr=192.168.0.116 0 0 > devtmpfs /dev devtmpfs rw,relatime,size=1026312k,nr_inodes=185478,mode=755 0 0 > proc /proc proc rw,relatime 0 0 > sysfs /sys sysfs rw,relatime 0 0 > tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0 > tmpfs /var/volatile tmpfs rw,relatime 0 0 > tmpfs /dev tmpfs rw,relatime,size=64k,mode=755 0 0 > devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0 > >I notice that it lists /dev as both devtmpfs (line 2) as well as tmpfs >(the second line from the bottom). Could that be an issue? I'm not >sure how or why /dev is being mounted as tmpfs in addition to >devtmpfs. > >Thanks, > >Greg One other data point: there are 3 other misc devices on the system, and all of them are correctly listed under /dev: # ls -1 /sys/class/misc cpu_dma_latency loop-control foo0 vga_arbiter # ls -1 /dev/{cpu_dma_latency,loop-control,vga_arbiter} /dev/cpu_dma_latency /dev/loop-control /dev/vga_arbiter Greg _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies