msr_class = class_simple_create(THIS_MODULE, "msr"); 
msr_class = class_create(THIS_MODULE, "msr"); 
static int __init msr_init(void){	int i, err = 0;	i = 0;	if (register_chrdev(MSR_MAJOR, "cpu/msr", &msr_fops)) {		printk(KERN_ERR "msr: unable to get major %d for msr\n",		       MSR_MAJOR);		err = -EBUSY;		goto out;	}	msr_class = class_simple_create(THIS_MODULE, "msr");	if (IS_ERR(msr_class)) {		err = PTR_ERR(msr_class);		goto out_chrdev;	}	for_each_online_cpu(i) {		err = msr_class_simple_device_add(i);		if (err != 0)			goto out_class;	}	register_cpu_notifier(&msr_class_cpu_notifier);	err = 0;	goto out;out_class:	i = 0;	for_each_online_cpu(i)		class_simple_device_remove(MKDEV(MSR_MAJOR, i));	class_simple_destroy(msr_class);out_chrdev:	unregister_chrdev(MSR_MAJOR, "cpu/msr");out:	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8874b414ffe037c39e73bb262ddf69653a13c0a4/msr.c/clean/arch/i386/kernel/msr.c