STRUCT HISI_UNCORE_FREQ(9)
π struct hisi_uncore_freq(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is struct hisi_uncore_freq, which is literally the data blob for the hisi uncore frequency scaling device. no cap, that's the whole vibe.
π NAME π
struct hisi_uncore_freq β hisi uncore frequency scaling device data. that's it, that's the function-she-is π«Ά
β¨ SYNOPSIS β¨
struct hisi_uncore_freq {
struct device *dev;
struct mbox_client cl;
struct pcc_mbox_chan *pchan;
int chan_id;
ktime_t last_cmd_cmpl_time;
struct mutex pcc_lock;
struct devfreq *devfreq;
struct cpumask related_cpus;
u32 cap;
};
look at her. every field accounted for, nothing skipped, we stan a complete struct ππ
π¦ Members π¦
okay let's go field by field, no skipping, we're being thorough today:
devβ the device of this frequency scaling driver. like, whose device is this? hers. πclβ the mailbox client object. your little mailbox bestie π«Άpchanβ the PCC mailbox channel. yes queen, get your channel π¬chan_idβ the PCC channel ID. gotta know which channel you're on, iykyklast_cmd_cmpl_timeβ timestamp of the last completed PCC command β° like a little receipts log of when the last command finishedpcc_lockβ the PCC channel lock π mutual exclusion but make it fashiondevfreqβ the devfreq data of thishisi_uncore_freqdevice. it's giving... self-referential but in a cute way πrelated_cpusβ the CPUs whose performance is majorly affected by this uncore frequency domain π₯ "majorly affected" β so not a casual acquaintance, an actual situationship with your performancecapβ capability flag π³οΈ a flag! for capabilities! iconic
ngl bestie, if you're poking at these fields directly you better know what you're doing β this is driver-internal data, not a snack π
π SEE ALSO π
- Kernel file
./drivers/devfreq/hisi_uncore_freq.cβ go read the source, she's right there, the whole implementation is literally sitting in this file π
okay that's the whole page, you ate that π β¨
sign-off szn: this little masterpiece lives in ./drivers/devfreq, dated October 2026 β and the whole time it's been calling itself struct hisi_uncore_freq(9) in the corner like a name tag she never takes off π byeeee π¦π
π¦ 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