DCONS(4)
π DCONS(4) π
okay bestie, welcome to the dcons page β that's the dumb console device driver, from the Kernel Interfaces Manual, section 4. yes she's literally called dumb, we love a humble queen π
β¨ NAME β¨
dcons β the dumb console device driver π
πΈ SYNOPSIS πΈ
so if you wanna compile this driver straight into your kernel, you gotta drop these lines into your kernel configuration file:
options GDB
device firewire
device dcons
or, plot twist, if you'd rather load it as a module at boot time instead, put this line in your kernel config file:
options GDB
and then in loader.conf(5) you go:
dcons_load="YES"
periodt. that's the whole setup π
π¦ DESCRIPTION π¦
okay so dcons is a simple console device β and when I say simple I mean she literally just reads from an allocated buffer and writes to an allocated buffer, for input and output respectively. that's it. that's the whole job. icon behaviour honestly π
she is of no use by herself β no cap, zero, nada. the whole plan is that some bus like firewire(4) or kvm(3) comes along and lets you interact with that buffer. she's the main character but she needs her supporting cast fr fr.
now the buffer? it's made of 4 channels. and there are 2 ports: one for the console TTY, and the other is the GDB port. then each one of those ports gets an input channel and an output channel. 2 ports Γ 2 channels = 4 channels, the math is mathing β¨
π FILES π
/dev/dcons/etc/ttys
π EXAMPLES π
running getty on dcons
if you wanna run getty(8) on dcons, bestie you just insert this line into ttys(5):
dcons "/usr/libexec/getty std.9600" vt100 on secure
and then send a HUP signal to init(8) using kill(1). slay π₯
accessing the buffer from another host
once the fwohci(4) device is initialized so that physical access is allowed, the buffer can be accessed from another host through a firewire(4) bus, using the dconschat(8) application. obsessed. go read dconschat(8) if you want the full tea π
using dcons as a gdb port
wanna use dcons as a gdb(1) port? say less. add this line into loader.conf(5):
dcons_gdb="1"
π SEE ALSO π
π AUTHORS π
Hidetoshi Shimokawa <simokawa@FreeBSD.org> β thank you king, we appreciate you π«Ά
π BUGS π
This driver is currently under development.
she's still growing, she's in her development era, be nice to her ππ
kay that's the whole page bestie!! this one came from the Debian edition, dated January 26, 2008 β vintage fr, but still iconic πβ¨
π¦ 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) 2003 Hidetoshi Shimokawa
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms