cscfg_activate_config(9)
π cscfg_activate_config β the kernel API manual, bestie edition π
okay so real talk, this page lives in the cscfg_activate_config(9) section of the Kernel API Manual, and it's honestly lowkey iconic. let's get into it β¨
πΈ NAME πΈ
cscfg_activate_config β marks a configuration descriptor as active. that's the whole vibe. no cap.
π¦ SYNOPSIS π¦
int cscfg_activate_config (unsigned long cfg_hash );
literally just one argument, one int back. we love a low-effort slay π
π ARGUMENTS π
cfg_hashβ the hash value of the selected configuration name. yes, it's unsigned long, yes it's a hash, no you don't hand-write it (more on that in a sec π«Ά)
β DESCRIPTION β
okay so here's the tea π β this is what you'll be seeing when csdev devices get enabled in the system. and hear me out: only activated configurations can be enabled on individual devices. that's the rule, periodt.
activation also protects the configuration from being altered or removed while it's active. so like, once you activate it, it's main character energy β nobody's editing it, nobody's deleting it, it's locked in πβ¨
and about the selection situation: you select by hash value, which is generated from the configuration name back when it was loaded, and it gets added to the cs_etm/configurations file system so perf can pick it. iykyk π
ngl this is the part people skim β the hash isn't something you invent, it comes from the name at load time. respect the pipeline π§
π SEE ALSO π
- kernel file:
./drivers/hwtracing/coresight/coresight-syscfg.c cscfg_load_config_sets(9)cscfg_unload_config_sets(9)cscfg_register_csdev(9)cscfg_unregister_csdev(9)cscfg_csdev_reset_feats(9)cscfg_deactivate_config(9)cscfg_csdev_enable_active_config(9)cscfg_csdev_disable_active_config(9)
and that's the page!! π this little beauty comes to you from ./drivers/hwtracing/coresight, dated October 2026, and it's filed under cscfg_activate_config(9) in the Kernel API Manual. go forth and activate those configs, bestie β you got this π«Άπ₯
π¦ 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