summaryrefslogtreecommitdiff
path: root/include/linux/console_struct.h
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-10-15 04:25:24 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-10-15 04:25:24 -0700
commitb288f6add39cf474fc2ec8087d32d3e1d4c1c6d0 (patch)
tree9e4a6e6154b4c399f09fe480afe185766d1d6216 /include/linux/console_struct.h
parentafae25b7c8d594f6349e81dce2b16ce44aa9f0ed (diff)
[PATCH] preparation to use of driverfs refcounts, part 2 - disk
* disk->disk_dev is initialized in alloc_disk(), device_add()'d in add_disk(), device_del()'d in unregister_disk() and device_put() in put_disk(). * devices of partitions are made its children. * attributes of disk one: dev (dev_t of the thing), range (number of minors) and size (in sectors). * attributes of partition ones: dev (ditto), start (in sectors) and size (in sectors). * disk devices are put on a new bus - "block" * if caller of add_disk() had set disk->driverfs_dev, we set symlinks: "device" from disk to underlying device and "block" from underlying device to disk. * ->release() of disk_dev frees disk and disk->part. At that point we have sane driverfs subtree for each gendisk and refcount of its root (disk->disk_dev) can act as gendisk refcount.
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions