> Yeah, I used a wrong term when was asking about "callback". Actually I
need

asynchronous notification, so I can pend a task on some primitive like a

semaphore.



Semaphore is not a good choice to OS/application signaling due to memory
access issues in some build configurations.  And semapores are not easilty
shareable in the case of multiple waiters.



Again, a signal is what you want.  Your applications can wait on a signal
primitive for any mount related event to occur. This is the strategy used
everywhere and is intended just for what you are doing.

Reply via email to