Skip to content
  • Thomas Haller's avatar
    platform: refactor detecting kernel features · bf36fa11
    Thomas Haller authored
    Next we will need to detect more kernel features. First refactor the
    handling of these to require less code changes and be more efficient.
    A plain nm_platform_kernel_support_get() only reqiures to access an
    array in the common case.
    
    The other important change is that the function no longer requires a
    NMPlatform instance. This allows us to check kernel support from
    anywhere. The only thing is that we require kernel support to be
    initialized before calling this function. That means, an NMPlatform
    instance must have detected support before.
    
    (cherry picked from commit ee269b31)
    bf36fa11