[OE-core] [PATCH v3 1/1] latencytop: fix mount error

Burton, Ross ross.burton at intel.com
Mon Jul 14 18:56:17 UTC 2014


On 14 July 2014 18:49, Saul Wold <sgw at linux.intel.com> wrote:
> Why do two stats here?  Can't you stat an entry inside of the
> /sys/kernel/debug directory?

It's the idiomatic "is this a mount point" test: look at the device
number inside and outside the hopeful mount point, and if they're
different then there's a mount.  You need to stat twice to determine
this.

Ross



More information about the Openembedded-core mailing list