#ifdef CONFIG_CRASH_DUMP case 12: filp->f_op = &oldmem_fops; break; #endif 
static int memory_open(struct inode * inode, struct file * filp){	switch (iminor(inode)) {		case 1:			filp->f_op = &mem_fops;			break;		case 2:			filp->f_op = &kmem_fops;			break;		case 3:			filp->f_op = &null_fops;			break;#if (defined(CONFIG_ISA) || !defined(__mc68000__)) && (!defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI))		case 4:			filp->f_op = &port_fops;			break;#endif		case 5:			filp->f_mapping->backing_dev_info = &zero_bdi;			filp->f_op = &zero_fops;			break;		case 7:			filp->f_op = &full_fops;			break;		case 8:			filp->f_op = &random_fops;			break;		case 9:			filp->f_op = &urandom_fops;			break;		case 11:			filp->f_op = &kmsg_fops;			break;		default:			return -ENXIO;	}	if (filp->f_op && filp->f_op->open)		return filp->f_op->open(inode,filp);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/50b1fdbd81edcc8bd343ca44aca2b87a29e2f15c/mem.c/buggy/drivers/char/mem.c