GetDataLength() has been deprecated, look at the DriverKit-20 API, you'll find getDataLength().
Unfortunately, Catalina does not (currently) support DriverKit-20, so you will need to compile with GetDataLength() for Catalina and getDataLength() for Big Sur.
I assume that it is a bug that Big Sur returns an error for GetDataLength() as it is marked as deprecated not removed in the documentation.
Topic:
App & System Services
SubTopic:
Drivers
Tags: