summaryrefslogtreecommitdiffstats
path: root/libmount/docs
diff options
context:
space:
mode:
authorKarel Zak2014-12-16 11:25:52 +0100
committerKarel Zak2015-01-06 16:19:02 +0100
commitf7ca1a6433eb42eb3cf0e3e7af9e7c1fa989d590 (patch)
treeb48be55964a14f0013cd6d52331dc64d698f1bbb /libmount/docs
parentlibmount: monitor unref function refactoring (diff)
downloadkernel-qcow2-util-linux-f7ca1a6433eb42eb3cf0e3e7af9e7c1fa989d590.tar.gz
kernel-qcow2-util-linux-f7ca1a6433eb42eb3cf0e3e7af9e7c1fa989d590.tar.xz
kernel-qcow2-util-linux-f7ca1a6433eb42eb3cf0e3e7af9e7c1fa989d590.zip
libmount: make public top-level monitor FD only
We need full control on changes evaluation, so it's better to hide all in our private epoll. This change also significantly simplify the API. mn = mnt_new_monitor(); mnt_monitor_enable_userapce(mn, TRUE, NULL); mnt_monitor_enable_kenrel(mn, TRUE); fd = mnt_monitor_get_fd(mn); ... <use 'fd' in epoll controlled by your application> ... while (mnt_monitor_next_changed(mn, &filename, NULL) == 0) printf("%s: change detected\n", filename); Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/docs')
0 files changed, 0 insertions, 0 deletions