Querying WWAN iface name for each /dev/cdc-wdm device

Bjørn Mork bjorn at mork.no
Tue Jan 27 07:08:59 PST 2015


Aleksander Morgado <aleksander at aleksander.es> writes:

> In order to handle the case of the renames, I guess libqmi shouldn't
> cache the net iface name the first time it's read, right? I mean if
> someone calls qmi_device_get_wwan_iface() we better get the filename
> directly from sysfs every time?

Yup, that's necessary if you care about the name. Note that this is racy
in any case, so you do risk that the name refers to something else by
the time you present it to the user. But I don't know if we should
care.  I cannot imagine a real rename use case after device discovery is
completed.


Bjørn


More information about the libqmi-devel mailing list