How do I call a C function from a dynamically loaded library via rt_module?

Created at 2022-07-21 08:22:58

There is a function for dynamically loading libraries in rt-thread:
https://www.rt-thread.org/download/rttdoc_1_0_0/structrt__module.html
https://www.rt-thread.org/download/rttdoc_1_0_0/group___module.html

However when looking at rt_module function it doesn't show me a way to call a method dynamically. There is rt_module_load_sethook, but this function's signature tells me I have to know the name of the function in the library module I want to call beforehand, correct?

Please advise.

More

Follower
0
Views
206
1 Answer

Write Your Answer

Log in to publish your answer.,Click here to log in.

Create
Post

Share