sdca_regmap_count_constants(9)
β¨ sdca_regmap_count_constants β¨
okay so bestie, this one lives in the Kernel API Manual (section 9, the kernel-functions girlies π ) and it's literally just here to count stuff for you. no cap.
πΈ NAME πΈ
sdca_regmap_count_constants β counts the number of DisCo constant Controls π
π SYNOPSIS π
int sdca_regmap_count_constants (struct device *dev , struct
sdca_function_data *function );
π¦ ARGUMENTS π¦
devβ a pointer to the device, bestie. π«Άfunctionβ a pointer to the Function information, which is the thing getting parsed. π
π« DESCRIPTION π«
So this function returns the number of DisCo constant Controls that are present in a function. iconic behaviour honestly.
typically you'd use this information to populate the regmap defaults array β which is the slay part, because it lets drivers access the values of DisCo constants exactly like they would any other physical register. same energy, no special-casing. β¨
π₯ RETURN π₯
it returns the number of DisCo constant controlsβ¦ or a negative error code on failure π (yeah, check that return value, don't be that girl).
π SEE ALSO π
kernel file ./sound/soc/sdca/sdca_regmap.c plus the whole friend group:
sdca_regmap_readable(9)sdca_regmap_writeable(9)sdca_regmap_volatile(9)sdca_regmap_deferrable(9)sdca_regmap_mbq_size(9)sdca_regmap_populate_constants(9)sdca_regmap_write_defaults(9)
this page is straight from./sound/soc/sdca, dated October 2026 β and yes, it'ssdca_regmap_count_constants(9)the whole way through. periodt. π
go count those constants, bestie, you're gonna ate πβπ
π¦ 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