lkml.org 
[lkml]   [2011]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v4 1/1] can: add pruss CAN driver.
    Date
    On Wednesday 27 April 2011, Subhasish Ghosh wrote:
    > >
    > > - Use just one value per sysfs file
    >
    > SG - I felt adding entry for each mbx_id will clutter the sysfs.
    > Is it ok to do that.

    That is probably not much better either.

    Note also that every sysfs file needs to come with associated
    documentation in Documentation/ABI/*/ to make sure that users
    will know exactly how the file is meant to work.

    Why do you need to export these values in the first place? Is
    it just for debugging or do you expect all CAN user space
    to look at this?

    If it's for debugging, please don't export the files through sysfs.
    Depending on how useful the data is to regular users, you can
    still export it through a debugfs file in that case, which has
    much less strict rules.

    If the file is instead meant as part of the regular operation of
    the device, it should not be in debugfs but probably be integrated
    into the CAN socket interface, so that users don't need to work
    with two different ways of getting to the device (socket and sysfs).

    Arnd


    \
     
     \ /
      Last update: 2011-04-27 15:29    [W:0.032 / U:31.968 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site