Removing a sysfs attrinute file while user space is accessing it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs




[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux