How does module_init(jpeg_init) get called
m silverstri
michael.j.silverstri at gmail.com
Wed Jan 8 21:25:24 EST 2014
Hi,
In a kernel driver code, I see it has 'module_init(jpeg_init)' and
'module_exit(jpeg_exit)'. I would like how know how will
jpeg_init(void) gets call during kernel bring up.
As an example:
static int __init jpeg_init(void)
{
printk(KERN_CRIT "Initialize JPEG driver\n");
platform_driver_register(&jpeg_driver);
return 0;
}
static void __exit jpeg_exit(void)
{
platform_driver_unregister(&jpeg_driver);
}
module_init(jpeg_init);
module_exit(jpeg_exit);
Thank you.
More information about the Kernelnewbies
mailing list