LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   arch_initcall time ? (https://www.linuxquestions.org/questions/programming-9/arch_initcall-time-710979/)

kamou 03-12-2009 04:00 AM

arch_initcall time ?
 
hello everybody,

I'm trying to write an I2C driver for an i2c controlled audio chip.
I've read in i2c.h:

/* Mainboard arch_initcall() code should register all its I2C devices.
* This is done at arch_initcall time, before declaring any i2c adapters.
* Modules for add-on boards must use other calls.
*/
extern int
i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned n);

so apparently I have too register my board informations at the arch_initcall time...

I'm using a 2.6.17 kernel, and I'd like to know when is this arch_initcall time ??


thanks,


All times are GMT -5. The time now is 06:03 PM.