Introduce libudev (branch yem/libudev-4)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest posting 3/30 of 12 patches 0 repliesNew
- v8 posting 2/30 of 12 patches 0 repliesSuperseded
- v8 posting 1/312 patches 0 repliesSuperseded
Patches in v8 posting 3/3 No applies recorded yet
None of the 12 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.
Cover letter [Buildroot] [PATCH 00/12 v8] Introduce libudev (branch yem/libudev-4)
Thomas, All,
On 2016-07-16 15:47 +0200, Thomas Petazzoni spake thusly:
Quoted 10 lines · Yann E. MORIN
Quoted 3 lines
This series introduces the possibility to just build and install libudev, without requiring that the /dev management be handled by eudev or systemd.
Thanks. However, I am still not sure that the usefulness vs. complexity ratio of this patch series is big enough to have it merged.
I compared the installed size of a minimal uClibc system with just libudev, and a minimal uClibc system with eudev:
[--SNIP--]
Quoted 1 line
So, there is indeed a 1.2 MB difference, but:
That is *not* about size; I don't think I even ever made that point as a reason to have only libudev.
[--SNIP--]
Quoted 7 lines
So I'm not sure if it's really worth the effort. After all, installing only libudev without eudev is not really supported upstream (we have to trick by building only some subdirectories).
I'm not entirely decided yet, so I'm waiting for arguments. But I'm hesitating between merging this, or asking people who really care about this to simply remove the eudev daemon in a post-build script.
But then you would not have libudev if you use mdev or a static /dev.
Note that libudev is not about managing /dev. It is about providing an abstraction to device descriptions (e.g. type and so on) as well as events (like hotplug).
A udev daemon (be it from eudev or systemd) is about managing the content of /dev. For that it uses libudev to get the device descriptions and events, and matches that to a DB of rules to generate the entries in /dev.
Bernd has a (imho, valid) use-case about using only libudev without a udev daemon altogether; there *are* other similar cases.
For example, we now have support (and have pending patches) for some "containerisation" stuff, like docker and lxc. You can also see that Buildroot can be used to generate lightweight containers. Such containers need not have a udev daemon of their own (the system has one, and /dev is bind-mounted into the container); however, an application inside that container will need to have access to the device "DB" and events, thus needs libudev.
There are various other use-cases...
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'