-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Netlink: Simplify kernel module's Netlink core API
Looking for #352 by code analysis, I was hampered by the cluttered Netlink API. Managing translator instances and Netlink responses separately lead to overcoding for no practical benefit, and managing error messages in yet another separate module was just confusing for no reason. (And dangerous, since it was storing the errors in a global variable. This didn't cause any errors that I'm aware of, though.) This centralizes all of that into a request handling state structure, jnl_state, which lives in the heap, and which mirrors the translation state structure. (xlation, which would benefit from a rename now.) This leads to a better substance-to-boilerplate ratio in the Netlink handlers. Unfortunately, this is just developer vanity. While I certainly prefer the new API, I didn't find #352 in the end, or any other errors for that matter.
- Loading branch information
Showing
76 changed files
with
1,715 additions
and
1,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.