tag | line | file | source code |
blkdevs | 27 | fs/devices.c | static struct device_struct blkdevs[MAX_BLKDEV] = { |
blkdevs | 44 | fs/devices.c | if (blkdevs[i].fops) { |
blkdevs | 45 | fs/devices.c | len += sprintf(page+len, "%2d %s\n", i, blkdevs[i].name); |
blkdevs | 55 | fs/devices.c | return blkdevs[major].fops; |
blkdevs | 90 | fs/devices.c | if (blkdevs[major].fops == NULL) { |
blkdevs | 91 | fs/devices.c | blkdevs[major].name = name; |
blkdevs | 92 | fs/devices.c | blkdevs[major].fops = fops; |
blkdevs | 100 | fs/devices.c | if (blkdevs[major].fops && blkdevs[major].fops != fops) |
blkdevs | 102 | fs/devices.c | blkdevs[major].name = name; |
blkdevs | 103 | fs/devices.c | blkdevs[major].fops = fops; |
blkdevs | 124 | fs/devices.c | if (!blkdevs[major].fops) |
blkdevs | 126 | fs/devices.c | if (strcmp(blkdevs[major].name, name)) |
blkdevs | 128 | fs/devices.c | blkdevs[major].name = NULL; |
blkdevs | 129 | fs/devices.c | blkdevs[major].fops = NULL; |
blkdevs | 148 | fs/devices.c | if (i >= MAX_BLKDEV || (fops = blkdevs[i].fops) == NULL) |
blkdevs | 176 | fs/devices.c | if (i >= MAX_BLKDEV || !blkdevs[i].fops) |
blkdevs | 178 | fs/devices.c | filp->f_op = blkdevs[i].fops; |