Some questions about using FFI

If I want to use the C code in the kernel through FFI in rust, for example, I want to use the notifier.c file to implement the kernel notification chain, then the notifier.c file itself will import a series of other C files, then through this layer The progressive relationship between layers may be used by dozens or hundreds of files. How should I use it?

You might want to take a look at Overview - The (unofficial) Rust FFI Guide by @Michael-F-Bryan, a worthwhile read.

1 Like

Okay, I will read this book.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.