NMDM(4)
β¨ NAME β¨
nmdm β nullmodem terminal driver. Okay so this is the NMDM(4) page from the Kernel Interfaces Manual, and it is literally that driver, no cap. π
π οΈ SYNOPSIS π οΈ
To compile this driver into the kernel, place the following line in your kernel configuration file:
device nmdm
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
nmdm_load="YES"
Slay. That's the whole setup. β¨
π» DESCRIPTION π»
The nmdm driver provides two tty(4) devices connected by a virtual βnull modemβ cable. It's giving two besties holding hands through a cable energy, but make it kernel. π«Ά
If either of the two tty devices have the CDSR_OFLOW bit β yes, the βstty dsrflowβ one β set in their line discipline, the nmdm device will emulate the speed configured in the termios(4) settings. The speed emulation works independently in the two directions, controlled by the slower end's termios settings (c_ispeed, c_ospeed, CS5 ... CS8, CSTOPB and PARENB). Highkey iconic that it's directional like that. π₯
π FILES π
/dev/nmdmN[AB]β nullmodem device nodes. Where theAnode has a matchingBnode. Matching set, periodt. π
The nmdm driver implements βon-demand device creationβ so simply accessing a given instance in /dev will create it. Not me being obsessed with lazy magic β it's just the vibe. β¨
π©Ί DIAGNOSTICS π©Ί
None. Literally none, bestie. π
π SEE ALSO π
Go read the supporting cast, iykyk. π
π HISTORY π
The nmdm driver first appeared in FreeBSD 4.4. Vintage but still serving looks. πΈ
Cute sign-off time: this footer is Debian, dated July 11, 2020, and the page is NMDM(4). Bye bestie, go make that virtual null modem cable do its thing ππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2001 The FreeBSD Project
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms