Make linprocfs(5) create /proc/bus/pci/devices/, and linsysfs(5)
create /sys/class/power_supply/. This silences some warnings from biology/linux-foldingathome. Reported by: 0mp MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25557
This commit is contained in:
parent
11c345b18f
commit
8b99a63fd8
@ -1746,6 +1746,11 @@ linprocfs_init(PFS_INIT_ARGS)
|
||||
pfs_create_file(root, "version", &linprocfs_doversion,
|
||||
NULL, NULL, NULL, PFS_RD);
|
||||
|
||||
/* /proc/bus/... */
|
||||
dir = pfs_create_dir(root, "bus", NULL, NULL, NULL, 0);
|
||||
dir = pfs_create_dir(dir, "pci", NULL, NULL, NULL, 0);
|
||||
dir = pfs_create_dir(dir, "devices", NULL, NULL, NULL, 0);
|
||||
|
||||
/* /proc/net/... */
|
||||
dir = pfs_create_dir(root, "net", NULL, NULL, NULL, 0);
|
||||
pfs_create_file(dir, "dev", &linprocfs_donetdev,
|
||||
|
@ -622,6 +622,7 @@ linsysfs_init(PFS_INIT_ARGS)
|
||||
struct pfs_node *pci;
|
||||
struct pfs_node *scsi;
|
||||
struct pfs_node *net;
|
||||
struct pfs_node *power_supply;
|
||||
struct pfs_node *devdir, *chardev;
|
||||
devclass_t devclass;
|
||||
device_t dev;
|
||||
@ -634,6 +635,7 @@ linsysfs_init(PFS_INIT_ARGS)
|
||||
class = pfs_create_dir(root, "class", NULL, NULL, NULL, 0);
|
||||
scsi = pfs_create_dir(class, "scsi_host", NULL, NULL, NULL, 0);
|
||||
drm = pfs_create_dir(class, "drm", NULL, NULL, NULL, 0);
|
||||
power_supply = pfs_create_dir(class, "power_supply", NULL, NULL, NULL, 0);
|
||||
|
||||
/* /sys/class/net/.. */
|
||||
net = pfs_create_dir(class, "net", NULL, NULL, NULL, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user