NG_HOLE(4)
π ng_hole β netgraph discard node type π
okay bestie, so this is ng_hole, from the Kernel Interfaces Manual, section 4 π«Ά it's a whole node type in the netgraph universe, and honestly? its whole personality is "receives stuff, says nothing, keeps it cute" β¨
πΈ SYNOPSIS πΈ
#include <sys/types.h>
#include <netgraph/ng_hole.h>
like yes, you gotta include those two, no skipping π
π¦ DESCRIPTION π¦
The hole node type silently discards all data and control messages it receives. Not a peep. Not a single one. Everything you send it justβ¦ poof π«₯
And the way that this type is used for testing and debugging? iconic. it's literally the void in node form, main character energy but make it empty π
π HOOKS π
A ng_hole node accepts any request to connect, regardless of the hook name β as long as the name is unique β¨
so like, name your hook whatever you want, it's not picky, it's just not gonna let two hooks share a name. boundaries, we love to see it π
β¨ CONTROL MESSAGES β¨
This node type supports the generic control messages, plus these lil cuties below π
NGM_HOLE_GET_STATS(getstats) β This command takes an ASCII string argument, the hook name, and returns the statistics associated with the hook as astruct ng_hole_hookstat. π giving you the receipts fr frNGM_HOLE_CLR_STATS(clrstats) β This command takes an ASCII string argument, the hook name, and clears the statistics associated with the hook. π§Ή fresh slate, no capNGM_HOLE_GETCLR_STATS(getclrstats) β This command is identical toNGM_HOLE_GET_STATS, except that the statistics are also atomically cleared. π₯ grab 'em and wipe 'em in one go, obsessed
π SHUTDOWN π
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when all hooks have been disconnected. π
it's giving "leave me alone and I'll leave" honestly. no hooks, no node. periodt.
π SEE ALSO π
iykyk, go read the whole fam π«Ά
β HISTORY β
The ng_hole node type was implemented in FreeBSD 4.0. a true vintage queen π
π AUTHORS π
Julian Elischer <julian@FreeBSD.org> β ty bestie for this one π
and that's the whole page, bestie!! πΈ this version was chillin' with the Debian crew, dated May 19, 2004, and it lives at NG_HOLE(4) π slay, go forth and discard π
β¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 1996-1999 Whistle Communications, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms