ufs_qcom_set..._40ns_cycles(9)
π ufs_qcom_set_clk_40ns_cycles β Kernel API Manual, section 9 π
okay so this is a page from the Kernel API Manual (section 9, the function-y one) and the function's full government name is ufs_qcom_set_clk_40ns_cycles, even though the page header is out here abbreviating it like ufs_qcom_set..._40ns_cycles(9). bestie, the header is just being shy. π
β¨ NAME β¨
ufs_qcom_set_clk_40ns_cycles β literally just Configure 40ns clk cycles. that's the whole job. it configures 40ns clock cycles. iconique, no notes. β±οΈ
π¦ SYNOPSIS π¦
int ufs_qcom_set_clk_40ns_cycles (struct ufs_hba *hba , u32
cycles_in_1us );
that's it, that's the whole signature. returns an int, takes a struct ufs_hba * and a u32. clean. minimal. ate. π«Ά
πΈ ARGUMENTS πΈ
hbaβ the host controller instance. like, the one. your main character struct. πcycles_in_1usβ the number of cycles in 1us that's getting configured. that's the value you're handing over. no cap, that's literally it. π
π DESCRIPTION π
so what does it actually do? it returns an error if the dme get/set configuration for 40ns fails, and it returns zero on success. that's the entire vibe check: zero = slay, error = not slay. π
ngl the whole function is basically a yes/no girlie β success or error, no in-between, no drama, just0or not0. π
π₯ SEE ALSO π₯
the kernel file lives at ./drivers/ufs/host/ufs-qcom.c, and these besties are all in the same friend group:
ufs_qcom_config_ice_allocator(9)ufs_qcom_cfg_timers(9)ufs_qcom_double_t_adapt_l0l1l2l3(9)ufs_qcom_advertise_quirks(9)ufs_qcom_setup_clocks(9)ufs_qcom_init(9)ufs_qcom_device_reset(9)ufs_qcom_fw_managed_device_reset(9)ufs_qcom_probe(9)ufs_qcom_remove(9)
and that's the page!! π cute lil sign-off real quick: this one lives in ./drivers/ufs/host, it's dated October 2026, and it answers to ufs_qcom_set..._40ns_cycles(9) β the same abbreviated name as the top, we stay consistent in this house. πβ go configure some cycles 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