con_copy_unimap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ con_copy_unimap β€” copy unimap between two vts ✨

okay so bestie, this one lives in the Kernel API Manual (section 9, kernel internals only, iykyk) and it's honestly such a mood: it literally just copies a unimap from one virtual terminal over to another. lowkey iconic. πŸ’…


🌸 SYNOPSIS 🌸

int con_copy_unimap (struct vc_data *dst_vc , struct vc_data *src_vc );

πŸŽ€ ARGUMENTS πŸŽ€

  • dst_vc β€” the target 🎯 (where the unimap is going, bestie)
  • src_vc β€” the source 🫢 (where the unimap is coming from)

πŸ’– DESCRIPTION πŸ’–

okay so the actual doing of the thing requires one very important vibe check first:

The caller must hold the console lock when invoking this method. no cap, no exceptions β€” grab that lock before you call this, fr fr.

That's literally the whole description and honestly? respect. short and slay. ✨

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/tty/vt/consolemap.c β€” the actual source, go read it 🧚
  • struct uni_pagedict(9) β€” the struct involved, obsessed
  • con_set_default_unimap(9) β€” the sibling function, also a main character

✨ that's the whole page, bestie ✨ it's from ./drivers/tty/vt and dated October 2026 β€” so like, future energy πŸ¦‹ thanks for reading, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from