Martin Michlmayr <tbm@cyrius.com> (2015-12-10):
> * Cyril Brulebois <kibi@debian.org> [2015-12-11 04:44]:
> > A cursory look suggests this file is made available through:
> > | drivers/of/base.c: proc_symlink("device-tree", NULL, "/sys/firmware/devicetree/base");
>
> Yopu're right. It's also available via
> /sys/firmware/devicetree/base/model but I'm not sure if that's
> preferred.
Sorry for being as unclear as usual. I meant: instead of special-casing
/proc/device-tree/model in "addfile" (to make sure we have proper line
endings), we could use readlink there and special-case based on whether the
ultimate location is below /sys/firmware/devicetree. But docs suggest that
might break in the future.
Mraw,
KiBi.
Attachment:
signature.asc
Description: Digital signature