Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2018 21:26:14 +0200
From:      Niclas Zeising <zeising@freebsd.org>
To:        Emil Velikov <emil.l.velikov@gmail.com>
Cc:        x11@freebsd.org
Subject:   Re: your mail
Message-ID:  <9311ffed-ae3a-32d9-6e8d-c1db3f6abd68@freebsd.org>
In-Reply-To: <CACvgo53ZqW_-E1jqokZNoKvF9UmOFm=OVBuTEPwae9JUE3xo9A@mail.gmail.com>
References:  <CACvgo523OnQAKe0capm0u7XqSdV%2Bpwhqhjtg4%2BmFowvWARHQ_Q@mail.gmail.com> <20170222120828.zkrfh56swen7r44o@ivaldir.etoilebsd.net> <CACvgo50Jbs3vQyE-bzxJ3CqeKXnhrGTXyt=ngZRZHNF=0rsq-g@mail.gmail.com> <3635692.Vys3mgEcQY@workstation.reztek> <CACvgo51x1s77y-8w0j7hS4O9ZJASzhh%2Bo8yAULvoXtMB3LB=Sw@mail.gmail.com> <237b2552-c97c-fd41-5509-ed611f0103dd@freebsd.org> <CACvgo51oxBFGBmVAzOVgJ8mbj8zZ%2Bsr1VmEAr%2B-n7LAB-aQeeQ@mail.gmail.com> <ec82197f-855f-635b-4c82-156be17a6c88@freebsd.org> <CACvgo53ZqW_-E1jqokZNoKvF9UmOFm=OVBuTEPwae9JUE3xo9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/21/18 14:26, Emil Velikov wrote:
>>>> Creating /dev nodes is handled automatically by devfs and devd.  I don't
>>>> know how it's done in detail, but it's automatic as far as at least I'm
>>>> concerned.
>>>>
>>> Ack. On Linux the same daemon (udevd in our case) loads the kernel
>>> module also creates the node.
>>> Has there been attempts/discussions about doing the same in FreeBSD?
>>
>>
>> I don't think so.  There is some work done in general to load modules as
>> needed, but I don't think anything's been done specifically for graphics.
>> On linux, when is the module loaded?  On start or when starting X or some
>> other time?
> 
> It's been years since I've looked, so the following outline might not be 100%
> 
>   - device is plugged/present
>   - kernel populates /sys/$hardware_bus..../uevent
>   - udevd reads the uevent, loads (modprobe) the new module
>   - the module is loaded, creates more sysfs entries
>   - udevd sees the new ones, matches them to $rules and creates device
> nodes/symlinks/others

It should definitely be possible to do something similar on FreeBSD, 
probably using devd.
I had a look at the e-mail thread you linked to in another mail as well. 
  Robert Millan hasn't been active in the FreeBSD project for quite some 
time, so I don't think he'll answer.
Apart from getting rid of old code, and special casing a platform, can 
you give some more background to the change?

Thanks!
-- 
Niclas Zeising



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9311ffed-ae3a-32d9-6e8d-c1db3f6abd68>