On Fri, Nov 11, 2022 at 12:16:02PM +0800, Yi Liu wrote: > > +#if IS_ENABLED(CONFIG_IOMMUFD_VFIO_CONTAINER) > > +MODULE_ALIAS_MISCDEV(VFIO_MINOR); > > +MODULE_ALIAS("devname:vfio/vfio"); > > will this line also result in systemd to create this devnodes at boot > based on the module info even if the IOMMUFD_VFIO_CONTAINER is not > configured? No, it is contained by an ifdef. The MODULE_ALIAS mechanism works by inspecting the compiled object files for special ELF sections, if the code is discarded by the preprocessor then the sections will not be created by the compiler. Jason