subr_disk.c (62454) | subr_disk.c (62573) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * | 1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * |
9 * $FreeBSD: head/sys/kern/subr_disk.c 62454 2000-07-03 09:35:31Z phk $ | 9 * $FreeBSD: head/sys/kern/subr_disk.c 62573 2000-07-04 11:25:35Z phk $ |
10 * 11 */ 12 13#include <sys/param.h> 14#include <sys/systm.h> 15#include <sys/kernel.h> 16#include <sys/sysctl.h> 17#include <sys/bio.h> --- 93 unchanged lines hidden (view full) --- 111{ 112 if (!disk) 113 return (LIST_FIRST(&disklist)); 114 else 115 return (LIST_NEXT(disk, d_list)); 116} 117 118static int | 10 * 11 */ 12 13#include <sys/param.h> 14#include <sys/systm.h> 15#include <sys/kernel.h> 16#include <sys/sysctl.h> 17#include <sys/bio.h> --- 93 unchanged lines hidden (view full) --- 111{ 112 if (!disk) 113 return (LIST_FIRST(&disklist)); 114 else 115 return (LIST_NEXT(disk, d_list)); 116} 117 118static int |
119sysctl_disks (SYSCTL_HANDLER_ARGS) | 119sysctl_disks(SYSCTL_HANDLER_ARGS) |
120{ 121 struct disk *disk; 122 int error, first; 123 124 disk = NULL; 125 first = 1; 126 127 while ((disk = disk_enumerate(disk))) { --- 168 unchanged lines hidden --- | 120{ 121 struct disk *disk; 122 int error, first; 123 124 disk = NULL; 125 first = 1; 126 127 while ((disk = disk_enumerate(disk))) { --- 168 unchanged lines hidden --- |