get_device_name_for_modalias


Description:

public string get_device_name_for_modalias (string modalias, bool allow_fallback) throws Error

Return a human readable device name for the given modalias.

Will return the modalias again if no device name could be found, and returns null on error. If allow_fallback is set to false, this function will return null and error as_system_info_error_not_found in case no suitable description could be found.

Parameters:

this

a SystemInfo instance.

modalias

the modalias value to resolve (may contain wildcards).

allow_fallback

fall back to low-quality data if no better information is available

Returns:

a human-readable device name, or null on error.