forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipmr: Create a wrapper that understands ioctl
Create a wrapper for ipmr that knows how to handle ioctl. The goal is to move ioctl callback functions from accessing userspace, such as put_user()/from_user(), from the function itself. This function knows how to copy the proper structures to kernel space memory before ioctl being called. This function also copy the buffer that came from the function ioctl back to user space. That way, the ioctl function does not need to deal with userspace memory and became more flexible. Signed-off-by: Breno Leitao <leitao@debian.org>
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 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