STRUCT PSIL_EP_MAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct psil_ep_map(9) β€” the Kernel API Manual glow-up

Okay bestie, sit down, because today's main character is struct psil_ep_map from the kernel API manual (struct psil_ep_map(9) if we're being formal, which we're not πŸ’–). It's literally the little struct that holds your PSI-L thread ID configuration maps. Iconic. Let's get into it ✨


🌸 NAME 🌸

struct psil_ep_map β€” PSI-L thread ID configuration maps. That's it, that's the vibe 🫢


πŸŽ€ SYNOPSIS πŸŽ€

No cap, here's the whole thing, copied exactly, don't @ me:

struct psil_ep_map {
    char *name;
    struct psil_ep  *src;
    int src_count;
    struct psil_ep  *dst;
    int dst_count;
 };

Look at her. Five fields. Perfectly balanced. ✨


πŸ¦‹ Members πŸ¦‹

  • name β€” the name of the map, and the move here is to set it to the name of the SoC. Like, identity is important, she needs to know who she is πŸ’…
  • src β€” an array of source PSI-L thread configurations. The originals. The OGs 🌈
  • src_count β€” how many entries are in the src array. Gotta know how many besties are in the group chat πŸ”₯
  • dst β€” an array of destination PSI-L thread configurations. Where things are headed, main character energy πŸ‘‘
  • dst_count β€” the number of entries in the dst array. Same deal, but for dst πŸ“

πŸ’€ Description πŸ’€

Okay so here's the tea β˜• β€” in the case of a symmetric configuration for a matching src/dst thread (think 0x4400 and 0xc400, cute little mirror images of each other πŸͺž), only the src configuration can be present. That's allowed! You don't have to write both, bestie, nobody's forcing you πŸ™ˆ

And if there's no dst configuration found, the code will literally go looking for (dst_thread_id & ~0x8000) to find the symmetric match. That's the lookup. That's the whole trick. She's resourceful like that 🧚

Fr fr though β€” remember this is about the symmetric case specifically. Don't go assuming it's a general fallback for everything, because it's not, and I refuse to let you embarrass yourself πŸ’œ

⭐ SEE ALSO ⭐

  • Kernel file ./drivers/dma/ti/k3-psil-priv.h β€” go read it, iykyk πŸ“–

aaaand that's the page, bestie πŸŽ€ you absolutely ate this one, no crumbs. This little number lives over at ./drivers/dma/ti and it's dated October 2026, so mark your calendar and stan responsibly. bye bestie, slay πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from