Whamcloud - gitweb
LU-2456 lnet: Dynamic LNet Configuration (DLC) IOCTL changes 21/8021/33
authorAmir Shehata <amir.shehata@intel.com>
Wed, 9 Oct 2013 18:30:04 +0000 (11:30 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 30 Aug 2014 01:25:01 +0000 (01:25 +0000)
commitda677c1c4f37886ff7b8d31396645b12365c0e88
tree68ca0d1ca8572bd9a8322106f1b46c84b66476f9
parent11220ac2f0d1245e14306f116f1c262662037740
LU-2456 lnet: Dynamic LNet Configuration (DLC) IOCTL changes

This is the fourth patch of a set of patches that enables DLC.

This patch changes the IOCTL infrastructure in preparation of
adding extra IOCTL communication between user and kernel space.
The changes include:
- adding a common header to be passed to ioctl infra functions
  instead of passing an exact structure.  This header is meant
  to be included in all structures to be passed through that
  interface.  The IOCTL handler casts this header to a particular
  type that it expects
- All sanity testing on the past in structure is performed in the
  generic ioctl infrastructure code.
- All ioctl handlers changed to take the header instead of a
  particular structure type

Signed-off-by: Amir Shehata <amir.shehata@intel.com>
Change-Id: I144706a14293637cd5f381d2c020faa0e9c21f6b
Reviewed-on: http://review.whamcloud.com/8021
Tested-by: Jenkins
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/include/libcfs/libcfs_ioctl.h
libcfs/libcfs/linux/linux-module.c
libcfs/libcfs/module.c
libcfs/libcfs/util/l_ioctl.c
lnet/lnet/module.c
lnet/selftest/conctl.c
lnet/selftest/console.c
lnet/utils/debug.c