Removing a sysfs attrinute file while user space is accessing it
Rajat Jain <[email protected]> Mon, 4 May 2015 17:50:05 -0700
| Newsgroups | org.kernel.vger.linux-newbie |
|---|---|
| Message-ID | <CAA93t1rYvYBqihpgmgSOErLGQbFFEztV5ALht30GJOFfh-pK8A@mail.gmail.com> |
Hello, What happens if the kernel tries to remove a sysfs attribute that is currently in use by the user space (i.e. a user spacecode is, say executing the corresponding show()/store() method of that sysfs attribute)? I have some confidence that the call shall sleep untill the user space process is done with the read / write to the sysfs attribute. Is my understanding correct? If so, can some one point me to the supporting code (e.g. which locks / mutexes etc) provide this behaviour? Thanks, Rajat -- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs