Dillion Wang
Dillion Wang

Reputation: 361

Where are kdb_* functions used?

There are a lot of kdb_* functions under Linux Kernel source path /kernel/debug/kdb, like the function kdb_lsmod. I wonder where these functions are used, and how to invoke these functions when debugging a Linux Kernel.

Upvotes: 0

Views: 49

Answers (1)

Marco Bonelli
Marco Bonelli

Reputation: 69276

Those functions mostly define commands that you can directly run from KDB. You can see the commands defined in kdb_inittab(). For example the kdb_lsmod() function you are talking about can be invoked through the lsmod command in KDB.

Upvotes: 1

Related Questions