aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/iwpm_msg.c
diff options
context:
space:
mode:
authorMoni Shoua <monis@mellanox.com>2018-12-11 13:37:51 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-12-18 15:19:45 -0700
commitcbfdd442c43eab8c62bf2ea5127511cd39e9046d (patch)
treebb71aec3b5960f8ab4ad74b1a77c1819b8ddc7dc /drivers/infiniband/core/iwpm_msg.c
parentRDMA/uverbs: Add an ioctl method to destroy an object (diff)
downloadlinux-dev-cbfdd442c43eab8c62bf2ea5127511cd39e9046d.tar.xz
linux-dev-cbfdd442c43eab8c62bf2ea5127511cd39e9046d.zip
IB/uverbs: Add helper to get array size from ptr attribute
When the parser of an ioctl command has the knowledge that a ptr attribute in a bundle represents an array of structures, it is useful for it to know the number of elements in the array. This is done by dividing the attribute length with the element size. Signed-off-by: Moni Shoua <monis@mellanox.com> Reviewed-by: Guy Levi <guyle@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/iwpm_msg.c')
0 files changed, 0 insertions, 0 deletions