linux-newbie.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Removing a sysfs attrinute file while user space is accessing it
@ 2015-05-05  0:50 Rajat Jain
  0 siblings, 0 replies; only message in thread
From: Rajat Jain @ 2015-05-05  0:50 UTC (permalink / raw)
  To: linux-newbie

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-05  0:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-05  0:50 Removing a sysfs attrinute file while user space is accessing it Rajat Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).