MCPcopy Create free account
hub / github.com/OpenIntelWireless/IntelBluetoothFirmware / init

Method init

IntelBTPatcher/IntelBTPatcher.cpp:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69bool CIntelBTPatcher::_randomAddressInit = false;
70
71bool CIntelBTPatcher::init()
72{
73 DBGLOG(DRV_NAME, "%s", __PRETTY_FUNCTION__);
74 callbackIBTPatcher = this;
75 if (getKernelVersion() < KernelVersion::Monterey) {
76 lilu.onKextLoadForce(&IntelBTPatcher_IOBluetoothInfo, 1,
77 [](void *user, KernelPatcher &patcher, size_t index, mach_vm_address_t address, size_t size) {
78 callbackIBTPatcher->processKext(patcher, index, address, size);
79 }, this);
80 } else {
81 lilu.onKextLoadForce(&IntelBTPatcher_IOUsbHostInfo, 1,
82 [](void *user, KernelPatcher &patcher, size_t index, mach_vm_address_t address, size_t size) {
83 callbackIBTPatcher->processKext(patcher, index, address, size);
84 }, this);
85 }
86 return true;
87}
88
89void CIntelBTPatcher::free()
90{

Callers 1

IntelBTPatcher.cppFile · 0.45

Calls 1

processKextMethod · 0.80

Tested by

no test coverage detected