dev: implement driver objects to organise and identify devices
This commit is contained in:
@@ -74,6 +74,11 @@ static kern_status_t create_kext_from_info(struct kext_info *info, struct kext *
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
struct kext *kernel_kext(void)
|
||||
{
|
||||
return self;
|
||||
}
|
||||
|
||||
kern_status_t register_internal_kexts(void)
|
||||
{
|
||||
struct kext_info *cur = (struct kext_info *)__kexts_start;
|
||||
@@ -122,7 +127,7 @@ kern_status_t resolve_internal_dependencies(void)
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
kern_status_t scan_internal_kexts(void)
|
||||
kern_status_t init_kernel_kext(void)
|
||||
{
|
||||
kext_cache_init();
|
||||
|
||||
@@ -138,7 +143,11 @@ kern_status_t scan_internal_kexts(void)
|
||||
self->k_dependencies = NULL;
|
||||
|
||||
kext_register(self);
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
kern_status_t scan_internal_kexts(void)
|
||||
{
|
||||
kern_status_t status = register_internal_kexts();
|
||||
if (status != KERN_OK) {
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user