# Re: \[PATCH v3\] modules: add modalias file to sysfs for modules.

- From: Allen Webb \<hidden\>
- Date: 2022-12-08 14:24:39 
- List: linux-modules
- Page: https://ratatoskr.run/linux-modules/2022/12/2034721
- Thread: https://ratatoskr.run/linux-modules/2022/11/2024746/t.md

```text
On Wed, Dec 7, 2022 at 8:34 PM Luis Chamberlain [ref] wrote:
>
> On Tue, Nov 29, 2022 at 04:43:13PM -0600, Allen Webb wrote:
> > This information is readily available for external modules in
> > modules.alias. However, builtin kernel modules are not covered.
>
> Why add this into the kernel instead of just a modules.builtin.alias
> or something like that?
>
>   Luis

I am fine with that approach and already have a PoC for it. Here are
some considerations:
* This would add a new file to the kernel packaging requirements.
* It is easier for separate files to get out of sync with the runtime
state (this isn't really a big deal because we already have to deal
with it for modules.alias)
```
