Lines Matching refs:gd_ptr
84 static struct gendisk *gd_ptr; variable
169 gd_ptr = alloc_disk(1); in test_init_module()
170 if (!gd_ptr) { in test_init_module()
176 printk(KERN_ALERT "gd_ptr after alloc=%p\n", gd_ptr); in test_init_module()
180 del_gendisk(gd_ptr); in test_init_module()
186 gd_ptr->major = NLSMAJOR; in test_init_module()
187 gd_ptr->first_minor = 0; in test_init_module()
188 gd_ptr->fops = &bdops; in test_init_module()
189 gd_ptr->queue = queue; in test_init_module()
190 gd_ptr->private_data = dev; in test_init_module()
191 snprintf(gd_ptr->disk_name, sizeof(gd_ptr->disk_name), DEVICE_NAME); in test_init_module()
192 add_disk(gd_ptr); in test_init_module()
205 del_gendisk(gd_ptr); in test_exit_module()