pci_epf_type_add_cfs(9)
π pci_epf_type_add_cfs β like, the whole vibe π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function that helps function drivers show off their very own function-specific attributes in configfs. yes, that's a lot of "function" in one sentence, we're gonna get through it together π«Ά
πΈ NAME πΈ
pci_epf_type_add_cfs β the lil helper that lets function drivers expose their function specific attributes in configfs π
π¦ SYNOPSIS π¦
struct config_group * pci_epf_type_add_cfs (struct pci_epf *epf , struct config_group *group );
like. look at her. she takes two things and gives you back a struct config_group *. icon behavior π
π ARGUMENTS π
epfβ the EPF device that's gotta get configured using configfs. that's her whole thing, that's what she's here for β¨groupβ the parent configfs group (and yes, it corresponds to the entries inpci_epf_device_id, iykyk π)
β DESCRIPTION β
you invoke this bad girl to expose function specific attributes in configfs. that's literally the job, no cap π₯
she returns an error pointer if:
- this function gets called for an unbound EPF device π (not bound, not gonna happen, respectfully)
- the EPF driver's
add_cfsmethod straight up fails π
so yeah. error pointer = something went sideways. noted. periodt.
π RETURN π
you get back a pointer to a config_group structure π
or β plot twist β NULL if:
- the function driver doesn't have anything to expose (i.e. attributes configured by user), or
- the function driver doesn't implement the
add_cfsmethod at all π
so NULL here isn't a crash-and-burn situation, it's just "nothing to show, moving on" energy. main character restraint, honestly.
π₯ SEE ALSO π₯
- Kernel file
./drivers/pci/endpoint/pci-ep-cfs.cβ go read the source, bestie, it's giving lore ππ
and that's the whole page, bestie!! π sourced from ./drivers/pci/endpoint, dated October 2026 β she's from the future and she's still serving β¨π§π
π¦ 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