KextManagerUnloadKextWithIdentifier() is not able to unload kext in BigSur

This thread has been locked. Questions are automatically locked after two months of inactivity, or sooner if deemed necessary by a moderator.
KextManagerUnloadKextWithIdentifier(kextidentifier) is not able to unload kext in BigSur.

I get error code "kOSKextReturnNotPrivileged" for API call KextManagerUnloadKextWithIdentifier

KextManagerUnloadKextWithIdentifier(kextidentifier) is able to unload kext in Catalina.

Anyone used KextManagerUnloadKextWithIdentifier() with bigsur ?
Up vote post of Subbug
119 views