From: Gregory Anders <greg@gpanders.com>
To: Greg KH <greg@kroah.com>, kernelnewbies@kernelnewbies.org
Subject: Re: Device file not appearing
Date: Wed, 17 Mar 2021 11:05:56 -0600 [thread overview]
Message-ID: <YFI29ErHW/X7mEi1@gpanders.com> (raw)
In-Reply-To: <YFI0wuxgeusy0GLS@gpanders.com>
On Wed, 17 Mar 2021 10:56:34 -0600, Gregory Anders <greg@gpanders.com> 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
next prev parent reply other threads:[~2021-03-17 17:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 15:52 Device file not appearing Gregory Anders
2021-03-17 15:59 ` Greg KH
2021-03-17 16:13 ` Gregory Anders
2021-03-17 16:16 ` Greg KH
2021-03-17 16:56 ` Gregory Anders
2021-03-17 17:05 ` Gregory Anders [this message]
2021-03-17 17:15 ` Greg KH
2021-03-17 18:26 ` Gregory Anders
-- strict thread matches above, loose matches on Subject: below --
2021-03-16 20:25 Gregory Anders
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YFI29ErHW/X7mEi1@gpanders.com \
--to=greg@gpanders.com \
--cc=greg@kroah.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.