STRUCT CORESIGHT_DESC(9)
π struct coresight_desc (9) β the Kernel API Manual, bestie edition β¨
okay so. this is a page about struct coresight_desc, and no cap, the whole ~vibe~ is: description of a component required from drivers. that's it, that's the name section, but like... it's the main character of this whole page, so let's get into it π«Ά
β¨ SYNOPSIS β¨
struct coresight_desc {
enum coresight_dev_type type;
union coresight_dev_subtype subtype;
const struct coresight_ops *ops;
struct coresight_platform_data *pdata;
struct device *dev;
const struct attribute_group **groups;
const char *name;
struct csdev_access access;
u32 flags;
int cpu;
};
like, literally just copy it, don't @ me π
π MEMBERS π
here's the lineup, going member by member, no skips, we respect all ten of them:
typeβ as defined bycoresight_dev_type. that's the whole description bestie, it's giving "go look at the other struct" energy π¦subtypeβ as defined bycoresight_dev_subtype. same situation, different union πΈopsβ the generic operations for this component, as defined bycoresight_ops. this is the "what can it actually do" field πpdataβ platform data collected from DT. iykyk, DT = device tree, and this field is where that info lives π§devβ The device entity associated to this component. your component's plus-one π«Άgroupsβ operations specific to this component, and here's the tea: these will end up in the component's sysfs sub-directory. so they're not just vibes, they're visible vibes β¨nameβ name for the coresight device, also shown under sysfs. it's the component's instagram handle, lowkey πaccessβ Describe access to the device. short and iconic πflagsβ The descritpion flags. (yes, "descritpion" β that's how it's spelled in the source, i'm not fixing it, character for character baybee π)cpuβ The CPU this component is affined to. it has a favourite core and it's not subtle β
π SEE ALSO π
Kernel file ./include/linux/coresight.h, plus this absolutely stacked friend group of references β all of them, in order, no cuts π
union coresight_dev_subtype(9)struct coresight_platform_data(9)struct csdev_access(9)struct coresight_connection(9)struct coresight_sysfs_link(9)struct coresight_device(9)struct coresight_path(9)struct coresight_ops_sink(9)struct coresight_ops_link(9)struct coresight_ops_source(9)struct coresight_ops_helper(9)struct coresight_ops_panic(9)
go read the header file fr fr, it's got the lore π
mwah, that's the page π this little gem lives at ./include/linux and it's dated October 2026 β so yeah, future-dated, main character energy only π slay π¦β¨
π¦ 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