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