# Re: \[PATCH v4 6/7\] modpost: Add modname to mod\_device\_table alias

- From: Alexey Gladkov \<legion@kernel.org\>
- Date: 2025-06-21 16:10:24 
- List: linux-modules
- Page: https://ratatoskr.run/linux-modules/2025/06/3101660
- Thread: https://ratatoskr.run/linux-modules/2025/06/3101587/t.md

```text
On Sat, Jun 21, 2025 at 05:20:49PM +0200, Miguel Ojeda wrote:
> On Sat, Jun 21, 2025 at 3:57 PM Alexey Gladkov [ref] wrote:
> >
> > +/* Format: __mod_device_table__kmod_<modname>__<type>__<name> */
> 
> Should we mention that `__kmod_` and `__` will be the search strings,
> or otherwise the Rust formatting (i.e. that is carries a line etc.)?

Ok. Make sense.

Basically there's a comment for the MODULE_DEVICE_TABLE macro that tells
where and how that symbol is parsed.

> Cc'ing Tomo: do we need an update on `rust/kernel/net/phy.rs`? Should
> we factor out the formatting?
> 
> Thanks!
> 
> Cheers,
> Miguel
> 

-- 
Rgrds, legion

```
