NetLink MONitor; a lightweight udevadm monitor replacement.
git clone git://
Log | Files | Refs | LICENSE

commit e5e65a44ebfcbd0c4eaed2c22d5b70026e8d5863
parent 24284ee0dcbbe18246633b903585afe40728c770
Author: Christoph Lohmann <>
Date:   Fri,  6 Apr 2012 23:46:29 +0200

Adding the manpage.

Makefile | 8+++++++-
nlmon.1 | 51+++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -32,7 +32,7 @@ dist: clean @echo creating dist tarball @mkdir -p ${NAME}-${VERSION} @cp -R LICENSE Makefile \ - ${SRC} *.h ${NAME}-${VERSION} + ${SRC} ${NAME}.1 *.h ${NAME}-${VERSION} @tar -cf ${NAME}-${VERSION}.tar ${NAME}-${VERSION} @gzip ${NAME}-${VERSION}.tar @rm -rf ${NAME}-${VERSION} @@ -42,9 +42,15 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f ${NAME} ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME} + @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 + @cp -f ${NAME}.1 ${DESTDIR}${MANPREFIX}/man1 + @chmod 644 ${DESTDIR}${MANPREFIX}/man1/${NAME}.1 uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin @rm -f ${DESTDIR}${PREFIX}/bin/${NAME} + @echo removing manual page from ${DESTDIR}${PREFIX}/man1 + @rm -f ${DESTDIR}${MANPREFIX}/man1/${NAME}.1 .PHONY: all options clean dist install uninstall diff --git a/nlmon.1 b/nlmon.1 @@ -0,0 +1,51 @@ +.Dd April 06, 2012 +.Dt NLMON 1 +.Os +. +.Sh NAME +.Nm nlmon +.Nd a simple netlink monitor +. +.Sh SYNOPSIS +.Nm +.Bk -words +.Op Fl h +.Op Fl k +.Op Fl u +.Op Fl f Ar subsystem +.Ek +. +.Sh DESCRIPTION +.Bd -filled +.Nm +is a simple netlink monitor. It will display each event and the +corresponding values as received from the netlink socket. +.Ed +. +.Sh OPTIONS +.Nm +options and default settings. +.Pp +.Bl -tag -width ".Fl test Ao Ar string Ac" +. +.It Fl k +Only show netlink messages from the kernel. +. +.Bd -filled +.It Fl u +Only show netlink messages from libudev. +. +.It Fl f +This option will filter for the SUBSYSTEM key in a netlink message +and compare it to the subsystem string. +. +.El +. +.Sh AUTHORS +See LICENSE file for authors in the distribution. +. +.Sh LICENSE +.Nm +is released under the MIT/X Consortium License. +. +