<div dir="ltr">Hi,<div><br></div><div style>sorry for the offtopic question here, but I do not know a better place for it.</div><div style><br></div><div style>I'm building a lockmonitor. I thought that would be just as easy as with the /proc/self/mountinfo "file".</div>
<div style><br></div><div style>But that is not the case. It's not pollable, like the mountinfo fle is.</div><div style>I've looked into the code of the kernel, (fs/locks.c versus fs/proc_namespace.c) and there it's abvious. The file_operations with the locks file misses the .poll operation.</div>
<div style><br></div><div style>Now first howto implement this? Someone a hint?</div><div style><br></div><div style>The mountinfo poll function is related to changes in namespace, but for the locks that is different I guess. That "changes" when a lock has been set or released.</div>
<div style><br></div><div style>And by the way, isn't this locks file not namespace specific?</div><div style><br></div><div style>Stef </div></div>