Article 6RD61 [$] FFI type mismatches in Rust for Linux

[$] FFI type mismatches in Rust for Linux

by
daroc
from LWN.net on (#6RD61)

At Kangrejos, Gary Guo wanted to discuss three problems with the wayRust and C code in the kernel interact: mismatched types, too many type casts,and the overhead of helper functions. To fix the first two problems, Guo proposedchanging the way the kernel maps C types into Rust types. The last problem was abit trickier, but he has a clever workaround for that, based on trickingthe compiler into inlining the helper functions across language boundaries.

External Content
Source RSS or Atom Feed
Feed Location http://lwn.net/headlines/rss
Feed Title LWN.net
Feed Link https://lwn.net/
Reply 0 comments