mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Use a sysinit to initialise the devfs hooks in kern_conf.c rather than common
variables. Reviewed by: phk (in principle)
This commit is contained in:
parent
cd85c8e853
commit
92fef27d97
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89107
@ -429,7 +429,14 @@ devfs_destroy(dev_t dev)
|
||||
}
|
||||
}
|
||||
|
||||
devfs_create_t *devfs_create_hook = devfs_create;
|
||||
devfs_destroy_t *devfs_destroy_hook = devfs_destroy;
|
||||
int devfs_present = 1;
|
||||
static void
|
||||
devfs_init(void *junk)
|
||||
{
|
||||
devfs_create_hook = devfs_create;
|
||||
devfs_destroy_hook = devfs_destroy;
|
||||
devfs_present = 1;
|
||||
}
|
||||
|
||||
SYSINIT(devfs, SI_SUB_DRIVERS, SI_ORDER_FIRST, devfs_init, NULL);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user