Brandon E Taylor
Brandon E Taylor

Reputation: 25369

Serial Console Driver as a Loadable Module

Can a linux 2.6 serial console driver that registers itself using the console_initcall() macro be developed as a loadable module or must it be compiled in-kernel?

Upvotes: 2

Views: 650

Answers (2)

user1011455
user1011455

Reputation:

serial console module can be initialize also inside the UART driver also if UART supports serial console then UART driver structure's cons field would be pointing to serial console.

Upvotes: 0

jofel
jofel

Reputation: 3405

As described in the kernel documentation there needs to be a system console driver which is called during the initialization phase.

So if you want default system console support for the serial drivers, you need to have them in-kernel. See drivers/tty/serial/Kconfig for the existing drivers.

This discussion might be also interesting for you.

Upvotes: 3

Related Questions