This function actually runs a function of a given DSM. Remove the
'_dsm' suffix to remove the inaccuracy and make things simpler.
Sponsored by: The FreeBSD Foundation
Differential D56877
acpi_spmc(4): acpi_spmc_run_dsm(): Rename, rename parameters, constify Authored by olce on Thu, May 7, 8:17 PM. Tags None Referenced Files
Details This function actually runs a function of a given DSM. Remove the Sponsored by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions not sure I like how generic the function name acpi_spmc_run() is. Technically it is actually running a DSM, just with a bunch of other options so the AML interpreter knows how to dispatch the function. How about acpI_spmc_run_dsm_fn() or something like that? Comment Actions acpi_spmc_run_dsm_fn() could work, although maybe _fn() at the end could be slightly misleading (that is often used for callbacks), maybe _func() instead. I do not have strong feelings, it's just that I find acpi_spmc_run() much simpler and not really ambiguous in that context (what could acpi_spmc(4) run except a DSM function?). Comment Actions Also, reading the points of call, what this function does seems pretty clear, since we have names (preprocessor constants) for each function. Comment Actions
i mean from my pov I agree with you, but if I was new to this code and was reading it for the first time I feel like this might confuse me
that is true Comment Actions Yes, I was thinking also about that in the meantime. I'll add a comment before acpi_spmc_run(), that should be enough. |