device_tree_get_compatibles


Description:

[ CCode ( array_length = false , array_null_terminated = true ) ]
[ Version ( since = "0.0.1" ) ]
public string[] device_tree_get_compatibles (string sysfs_root) throws Error

Read compatible machine types from `sysfs_root/firmware/devicetree/base/compatible` on Linux.

If the path doesn't exist or host is not Linux return null.

For debugging purposes `GMOBILE_DT_COMPATIBLES` can be set to a `:` separated list of compatibles which will be returned instead.

Parameters:

sysfs_root

Path where /sys is mounted. Defaults to `/sys` if null is passed.

Returns:

compatible machine types or null


Namespace: Gm
Package: gmobile