On Fri, Jul 14 2023 at 16:55, Asahi Lina wrote:
+ktime_t rust_helper_ktime_get_real(void) {
+ return ktime_get_real();
+}
+EXPORT_SYMBOL_GPL(rust_helper_ktime_get_real);
Colour me confused. But why does this need another export?
This just creates yet another layer of duct tape. If it's unsafe from
the rust perspective then wrapping it into rust_"unsafe_function" does not
make it any better.
Why on earth can't you use the actual C interfaces diretly which are
already exported?