[systemd-devel] Using the hwdb in external programs

Richard Hughes hughsient at gmail.com
Wed Aug 14 04:06:38 PDT 2013


On 14 August 2013 11:41, Kay Sievers <kay at vrfy.org> wrote:
> An example is here:
>   http://cgit.freedesktop.org/systemd/systemd/tree/src/test/test-libudev.c#n432

Great! Thanks. So I know what to use where, what's the cost of those
functions? For instance, is udev_hwdb_new() going to use globs of
memory until udev_hwdb_unref() is called, or are any of the functions
especially CPU intensive? I can profile if required, although I'm
hoping the answer is "very little; very little" :)

Richard.


More information about the systemd-devel mailing list