Re: [RFC/PATCH 0/22] W1: sysfs, lifetime and other fixes

From: Evgeniy Polyakov (johnpol_at_2ka.mipt.ru)
Date: 04/25/05

  • Next message: Adam Belay: "Re: [PATCH] PCI: Add pci shutdown ability"
    Date:	Tue, 26 Apr 2005 00:15:00 +0400
    To: dtor_core@ameritech.net
    
    

    While thinking about locking schema
    with respect to sysfs files I recalled,
    why I implemented such a logic -
    now one can _always_ remove _any_ module
    [corresponding object is removed from accessible
    pathes and waits untill all exsting users are gone],
    which is very good - I really like it in networking model,
    while with whole device driver model
    if we will read device's file very quickly
    in several threads we may end up not unloading it at all.

    So decision is simple from the first point of view -
    just remove appropriate objects from accessible pathes
    and free them from finall callbacks [device's remove method].

            Evgeniy Polyakov

    Only failure makes us experts. -- Theo de Raadt
    -
    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/


  • Next message: Adam Belay: "Re: [PATCH] PCI: Add pci shutdown ability"

    Relevant Pages

    • Re: 26 ways to set a device driver variable from userland
      ... The ioctlmethod is ideal for this, passing down a binary struct with ... a command/query member, and the driver fills in the rest of the struct ... you need to have sysfs files for every possible query/command, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.10-rc2-bk7 - kernel BUG at fs/sysfs/file.c:87!
      ... I dunno how to fix it ... > sysfs files should have only 1 value per file. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [ANNOUNCE] udev 013 release
      ... >> Yeah, but what exactly would udev print out? ... All of the sysfs files in ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC/PATCH 0/22] W1: sysfs, lifetime and other fixes
      ... > While thinking about locking schema ... > with respect to sysfs files I recalled, ... I am looking at the connector code ATM and I am just amazed at ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)