[cocci] Searching for function calls with known parameters (by SmPL)?
Markus Elfring <[email protected]> Wed, 25 Mar 2026 09:48:07 +0100
| Newsgroups | fr.inria.cocci |
|---|---|
| Message-ID | <[email protected]> |
Hello! A function like pm_request_autosuspend() has got the property that it needs a single input parameter. https://elixir.bootlin.com/linux/v7.0-rc5/source/include/linux/pm_runtime.h#L460-L483 Such an implementation detail can be easily determined also by the means of the semantic patch language. I imagine that corresponding data processing would become more challenging if it should be determined that a varying number of parameters would be passed to other function calls at the beginning. Can function calls be restricted to known parameters accordingly? Regards, Markus