Searched refs:gd_ptr (Results 1 – 4 of 4) sorted by relevance
84 static struct gendisk *gd_ptr; variable154 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()[all …]
52 static struct gendisk *gd_ptr; variable197 gd_ptr = kmalloc(sizeof(struct gendisk *), GFP_KERNEL); in init_module()199 if (!gd_ptr) { in init_module()204 gd_ptr = alloc_disk(1); in init_module()206 printk(KERN_ALERT "gd_ptr after alloc = %p \n", gd_ptr); in init_module()208 gd_ptr->major = ltp_fs_major; in init_module()209 gd_ptr->first_minor = 0; in init_module()210 gd_ptr->fops = &blkops; in init_module()211 gd_ptr->driverfs_dev = NULL; in init_module()212 gd_ptr->capacity = MAX_NUM_DISKS; in init_module()[all …]
84 static struct gendisk *gd_ptr; variable169 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()[all …]
27 struct gendisk *gd_ptr; in tc20() local29 gd_ptr = alloc_disk(1); in tc20()30 if (!gd_ptr) { in tc20()33 printk(KERN_DEBUG "gd_ptr after alloc=%p\n", gd_ptr); in tc20()35 del_gendisk(gd_ptr); in tc20()