lkml.org 
[lkml]   [2006]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 4/8] RTC subsystem, proc interface
    Date
    On Sunday 08 January 2006 21:04, Alessandro Zummo wrote:
    > On Sun, 8 Jan 2006 20:56:29 -0500
    > Dmitry Torokhov <dtor_core@ameritech.net> wrote:
    >
    > > > +static void rtc_proc_remove_device(struct class_device *class_dev,
    > > > +                                             struct class_interface *class_intf)
    > > > +{
    > > > +       down(&rtc_sem);
    > > > +       if (rtc_dev == class_dev) {
    > > > +               remove_proc_entry("driver/rtc", NULL);
    > > > +               rtc_dev = NULL;
    > > > +       }
    > > > +       up(&rtc_sem);
    > > > +}
    > >
    > > What if I happen to remove (unregister) rtc devices in order other
    > > than they were registered in? You need a counter there instead of
    > > storing the first device created.
    >
    > Only the first device that registers will get the /proc/driver/rtc
    > entry, which will be removed when the driver unregisters.
    >
    > /proc/driver/rtc is a legacy interface, thus supporting it
    > for more than one RTC is useless. Any system that uses
    > more than one RTCs should access them via /dev/rtcX or
    > via sysfs.
    >

    Oh, I see. Ignore me then...

    --
    Dmitry
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-01-09 03:53    [W:0.051 / U:29.660 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site