vcc_table_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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