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

Aleksander Morgado aleksander at aleksander.es
Tue Jan 27 08:19:34 PST 2015


On Tue, Jan 27, 2015 at 4:08 PM, Bjørn Mork <bjorn at mork.no> wrote:
>> 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.

Agreed; will go on with those changes then.


-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list