samples: watch_queue: Add sample of SB notifications
This sample demonstrates how to use the watch_sb syscall. It exposes
notifications like the following:
root@host:~# ./watch_sb /mnt
read() = 93
NOTIFY[000]: ty=000002 sy=01 i=0300005d
SB AT ext4_remount:5636 ERROR: 16 inode=0 block=0
description: Abort forced by user
read() = 96
NOTIFY[000]: ty=000002 sy=01 i=03000060
SB AT ext4_lookup:1706 ERROR: 0 inode=13 block=0
description: iget: bogus i_mode (45)
Signed-off-by:
Gabriel Krisman Bertazi <krisman@collabora.com>
samples/watch_queue/watch_sb.c
0 → 100644
Please register or sign in to comment