Lines Matching refs:gd_ptr
84 static struct gendisk *gd_ptr; variable
154 gd_ptr = kmalloc(sizeof(struct gendisk *), GFP_KERNEL); in test_init_module()
155 if (!gd_ptr) { in test_init_module()
161 gd_ptr = alloc_disk(1); in test_init_module()
162 printk(KERN_ALERT "gd_ptr after alloc = %p \n", gd_ptr); in test_init_module()
163 gd_ptr->major = INCLUDEMAJOR; in test_init_module()
164 gd_ptr->first_minor = 0; in test_init_module()
165 gd_ptr->fops = &bdops; in test_init_module()
167 gd_ptr->driverfs_dev = NULL; in test_init_module()
168 gd_ptr->capacity = MAX_NUM_DISKS; in test_init_module()
170 gd_ptr->flags = genhd_flags; in test_init_module()
172 sprintf(gd_ptr->disk_name, DEVICE_NAME); in test_init_module()
173 add_disk(gd_ptr); in test_init_module()
196 put_disk(gd_ptr); in test_exit_module()
197 del_gendisk(gd_ptr); in test_exit_module()