Re: SYSFS "errors"

Borislav Petkov
2013-02-19T13:55:04Z

On Tue, Feb 19, 2013 at 10:50:48AM -0300, Mauro Carvalho Chehab wrote:
> It is actually worse, as if someone is using a C code to open the device
> with
> fp = open ("/sys/devices/system/edac/mc/mc0/sdram_scrub_rate", O_RDWR);
>
> It will now start to fail if the device doesn't have both permissions.

That's fine - you're supposed to handle open()'s retval properly anyway. See my
other mail.

--
Regards/Gruss,
Boris.

Sent from a fat crate under my desk. Formatting is fine.
--