]> Git Repo - linux.git/commit
IB/uverbs: Add ioctl support for 32bit processes
authorMatan Barak <[email protected]>
Tue, 13 Feb 2018 10:18:34 +0000 (12:18 +0200)
committerJason Gunthorpe <[email protected]>
Thu, 15 Feb 2018 21:59:46 +0000 (14:59 -0700)
commit9dfb2ff400f6c0a52f63014b5331b64ee7bd5c19
tree50c4ee7027a4d52b7ce579e66e41f5fb965a36d6
parent5d2beb576d32ef2cd047db8914e3602e99a12763
IB/uverbs: Add ioctl support for 32bit processes

32 bit processes running on a 64 bit kernel call compat_ioctl so that
implementations can revise any structure layout issues. Point compat_ioctl
at our normal ioctl because:

- All our structures are designed to be the same on 32 and 64 bit, ie we
  use __aligned_u64 when required and are careful to manage padding.

- Any pointers are stored in u64's and userspace is expected
  to prepare them properly.

Signed-off-by: Matan Barak <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/core/uverbs_main.c
This page took 0.047502 seconds and 4 git commands to generate.