[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Ltib] turning off -O2
From: |
Matt Wilbur |
Subject: |
Re: [Ltib] turning off -O2 |
Date: |
Fri, 10 Dec 2010 14:11:15 -0500 |
>
> 212 static int __init rtc_init(void)
> 213 {
> 214 rtc_class = class_create(THIS_MODULE, "rtc");
> 215 if (IS_ERR(rtc_class)) {
> 216 printk(KERN_ERR "%s: couldn't create class\n", __FILE__);
> 217 return PTR_ERR(rtc_class);
Take a look at how modules are set up. If memory serves, stuff declared with
__init macros are collected into a section and just fired off.
See do_initcalls in main.c Not sure if you'd ever get breakpoints to work that
way.