Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Available function list #88

Open
NekoCWD opened this issue Mar 2, 2024 · 1 comment
Open

FR: Available function list #88

NekoCWD opened this issue Mar 2, 2024 · 1 comment

Comments

@NekoCWD
Copy link
Contributor

NekoCWD commented Mar 2, 2024

I think it would be great if library could provide full list of functions, that can be used in gadget.
Maybe something like:
int *usbg_get_available_function_types()
Which will return null-terminated array of functions or error(f.e if modules directory doesn't contain modules.{order/builtin})

We can search in modules.order and modules.builtin for kernel/drivers/usb/gadget/function/usb_f_{function_name}.ko and then recognize it with usbg_lookup_function_type(function_name)
Are there better ways to do this?
If no, i can make a PR with it

@pabs3
Copy link
Member

pabs3 commented Mar 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants