~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/s390/include/uapi/asm/cmb.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _UAPIS390_CMB_H
  3 #define _UAPIS390_CMB_H
  4 
  5 #include <linux/types.h>
  6 
  7 /**
  8  * struct cmbdata - channel measurement block data for user space
  9  * @size: size of the stored data
 10  * @elapsed_time: time since last sampling
 11  * @ssch_rsch_count: number of ssch and rsch
 12  * @sample_count: number of samples
 13  * @device_connect_time: time of device connect
 14  * @function_pending_time: time of function pending
 15  * @device_disconnect_time: time of device disconnect
 16  * @control_unit_queuing_time: time of control unit queuing
 17  * @device_active_only_time: time of device active only
 18  * @device_busy_time: time of device busy (ext. format)
 19  * @initial_command_response_time: initial command response time (ext. format)
 20  *
 21  * All values are stored as 64 bit for simplicity, especially
 22  * in 32 bit emulation mode. All time values are normalized to
 23  * nanoseconds.
 24  * Currently, two formats are known, which differ by the size of
 25  * this structure, i.e. the last two members are only set when
 26  * the extended channel measurement facility (first shipped in
 27  * z990 machines) is activated.
 28  * Potentially, more fields could be added, which would result in a
 29  * new ioctl number.
 30  */
 31 struct cmbdata {
 32         __u64 size;
 33         __u64 elapsed_time;
 34  /* basic and extended format: */
 35         __u64 ssch_rsch_count;
 36         __u64 sample_count;
 37         __u64 device_connect_time;
 38         __u64 function_pending_time;
 39         __u64 device_disconnect_time;
 40         __u64 control_unit_queuing_time;
 41         __u64 device_active_only_time;
 42  /* extended format only: */
 43         __u64 device_busy_time;
 44         __u64 initial_command_response_time;
 45 };
 46 
 47 /* enable channel measurement */
 48 #define BIODASDCMFENABLE        _IO(DASD_IOCTL_LETTER, 32)
 49 /* enable channel measurement */
 50 #define BIODASDCMFDISABLE       _IO(DASD_IOCTL_LETTER, 33)
 51 /* read channel measurement data */
 52 #define BIODASDREADALLCMB       _IOWR(DASD_IOCTL_LETTER, 33, struct cmbdata)
 53 
 54 #endif /* _UAPIS390_CMB_H */
 55 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php