vcc_table_add(9)
π NAME π
vcc_table_add β okay so this is the function that adds a VCC port to the VCC table, and honestly? That's the whole assignment. It's giving "short king" of kernel APIs π«Ά
This page lives in the Kernel API Manual (manual section 9, the kernel one, iykyk).
β¨ SYNOPSIS β¨
int vcc_table_add (struct vcc_port *port );
That's literally it, bestie. One function, one argument, returns an int. Clean. Iconic. No notes π
π ARGUMENTS π
portβ a pointer to the VCC port πΈ like, the actual port struct you're introducing to the table. Bestie gets a pointer, table gets a new member. Slay.
π₯ RETURN π₯
On success you get back the index of the port in the VCC table β literally the spot where your port landed, main character energy π
On failure you get -1. That's it. That's the signal. If you see -1, things did not go well and you should probably go touch some grass and then debug π
No cap: -1 is the failure value. Don't treat it as a valid index, bestie. It is not. π
π SEE ALSO π
If you're obsessed with this one (and why wouldn't you be), the kernel file ./drivers/tty/vcc.c is where it all lives. Go check out the rest of the friend group:
Squad goals fr fr π¦
Okay that's the whole page, bestie β mwah π
With love from ./drivers/tty, dated October 2026, page vcc_table_add(9) β signing off before I go reread the VCC table for fun π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms