cs_amp_create_debugfs(9)
π
cs_amp_create_debugfs β the cs_amp girlies' kernel API manual, bestie edition
okay so real talk, the function we're talking about is cs_amp_create_debugfs and it lives in the 9 section of the Kernel API Manual (that's the kernel-flavoured one, iykyk) β¨
πΈ NAME πΈ
cs_amp_create_debugfs β creates a debugfs directory for a device, no cap π
π SYNOPSIS π
struct dentry * cs_amp_create_debugfs (struct device *dev );
like, that's the whole signature, she's cute, she's concise π¦
β¨ ARGUMENTS β¨
devβ pointer tostruct deviceπ«Ά literally just a pointer to the device struct, that's it, that's the whole argument.
π DESCRIPTION π
okay so what she does is: she creates a node under "cirrus_logic" in the root of the debugfs filesystem π
and why, you ask? because this is for Cirrus-specific debugfs functionality, and the whole point is for it to be grouped in a defined way β independently of the debugfs provided by ALSA/ASoC π
the way that the general ALSA/ASoC debugfs may not even be enabled (π) and does not necessarily have a stable layout or naming convention. so yeah, she's doing her own thing, main character energy, and honestly? iconic.
π₯ RETURN π₯
she returns a pointer to the dentry for the created directory π β¦ or -ENODEV π
π SEE ALSO π
- Kernel file
./sound/soc/codecs/cs-amp-lib.c(go read her!!) cs_amp_write_cal_coeffs(9)cs_amp_read_cal_coeffs(9)cs_amp_write_ambient_temp(9)cs_amp_get_efi_calibration_data(9)cs_amp_set_efi_calibration_data(9)cs_amp_get_vendor_spkid(9)cs_amp_devm_get_vendor_specific_variant_id(9)
and that's the tea π this page came from ./sound/soc/codecs and it's dated October 2026 β so yeah, future vibes only, periodt πβ¨ π§ββοΈ
π¦ 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