View | Details | Raw Unified | Return to bug 262369
Collapse All | Expand All

(-)b/sys/compat/linprocfs/linprocfs.c (+20 lines)
Lines 1885-1890 linprocfs_douuid(PFS_FILL_ARGS) Link Here
1885
	return(0);
1885
	return(0);
1886
}
1886
}
1887
1887
1888
/*
1889
 * Filler function for proc/sys/kernel/random/boot_id
1890
 */
1891
static int
1892
linprocfs_doboot_id(PFS_FILL_ARGS)
1893
{
1894
       static char firstboot = 1;
1895
       static struct uuid uuid;
1896
1897
       if (firstboot) {
1898
               kern_uuidgen(&uuid, 1);
1899
               firstboot = 0;
1900
       }
1901
       sbuf_printf_uuid(sb, &uuid);
1902
       sbuf_printf(sb, "\n");
1903
       return(0);
1904
}
1905
1888
/*
1906
/*
1889
 * Filler function for proc/pid/auxv
1907
 * Filler function for proc/pid/auxv
1890
 */
1908
 */
Lines 2067-2072 linprocfs_init(PFS_INIT_ARGS) Link Here
2067
	dir = pfs_create_dir(dir, "random", NULL, NULL, NULL, 0);
2085
	dir = pfs_create_dir(dir, "random", NULL, NULL, NULL, 0);
2068
	pfs_create_file(dir, "uuid", &linprocfs_douuid,
2086
	pfs_create_file(dir, "uuid", &linprocfs_douuid,
2069
	    NULL, NULL, NULL, PFS_RD);
2087
	    NULL, NULL, NULL, PFS_RD);
2088
	pfs_create_file(dir, "boot_id", &linprocfs_doboot_id,
2089
	    NULL, NULL, NULL, PFS_RD);
2070
2090
2071
	/* /proc/sys/vm/.... */
2091
	/* /proc/sys/vm/.... */
2072
	dir = pfs_create_dir(sys, "vm", NULL, NULL, NULL, 0);
2092
	dir = pfs_create_dir(sys, "vm", NULL, NULL, NULL, 0);

Return to bug 262369