Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
hypfs_diag.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/vmalloc.h>
#include <linux/mm.h>
#include <asm/ebcdic.h>
#include "hypfs.h"

Go to the source code of this file.

Data Structures

struct  info_blk_hdr
 
struct  x_info_blk_hdr
 
struct  part_hdr
 
struct  x_part_hdr
 
struct  cpu_info
 
struct  x_cpu_info
 
struct  phys_hdr
 
struct  x_phys_hdr
 
struct  phys_cpu
 
struct  x_phys_cpu
 
struct  dbfs_d204_hdr
 
struct  dbfs_d204
 

Macros

#define KMSG_COMPONENT   "hypfs"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define LPAR_NAME_LEN   8 /* lpar name len in diag 204 data */
 
#define CPU_NAME_LEN   16 /* type name len of cpus in diag224 name table */
 
#define TMP_SIZE   64 /* size of temporary buffers */
 
#define DBFS_D204_HDR_VERSION   0
 
#define LPAR_PHYS_FLG   0x80
 

Enumerations

enum  diag204_sc { SUBC_STIB4 = 4, SUBC_RSI = 5, SUBC_STIB6 = 6, SUBC_STIB7 = 7 }
 
enum  diag204_format { INFO_SIMPLE = 0, INFO_EXT = 0x00010000 }
 

Functions

struct info_blk_hdr __attribute__ ((packed))
 
__init int hypfs_diag_init (void)
 
void hypfs_diag_exit (void)
 
int hypfs_diag_create_files (struct super_block *sb, struct dentry *root)
 

Variables

__u8 npar
 
__u8 flags
 
__u16 tslice
 
__u16 phys_cpus
 
__u16 this_part
 
__u64 curtod
 
__u64 curtod1
 
__u64 curtod2
 
char reserved [40]
 
__u8 pn
 
__u8 cpus
 
char part_name [LPAR_NAME_LEN]
 
__u8 rcpus
 
__u8 pflag
 
__u32 mlu
 
char lpc_name [8]
 
char os_name [8]
 
__u64 online_cs
 
__u64 online_es
 
__u8 upid
 
char reserved1 [3]
 
__u32 group_mlu
 
char group_name [8]
 
char reserved2 [32]
 
__u16 cpu_addr
 
__u8 ctidx
 
__u8 cflag
 
__u16 weight
 
__u64 acc_time
 
__u64 lp_time
 
__u16 min_weight
 
__u16 cur_weight
 
__u16 max_weight
 
char reseved2 [2]
 
__u64 online_time
 
__u64 wait_time
 
__u32 pma_weight
 
__u32 polar_weight
 
char reserved3 [40]
 
char mgm_name [8]
 
__u64 mgm_time
 
u64 len
 
u16 version
 
u8 sc
 
struct dbfs_d204_hdr hdr
 
char buf []
 

Macro Definition Documentation

#define CPU_NAME_LEN   16 /* type name len of cpus in diag224 name table */

Definition at line 22 of file hypfs_diag.c.

#define DBFS_D204_HDR_VERSION   0

Definition at line 25 of file hypfs_diag.c.

#define KMSG_COMPONENT   "hypfs"

Definition at line 9 of file hypfs_diag.c.

#define LPAR_NAME_LEN   8 /* lpar name len in diag 204 data */

Definition at line 21 of file hypfs_diag.c.

#define LPAR_PHYS_FLG   0x80

Definition at line 42 of file hypfs_diag.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 10 of file hypfs_diag.c.

#define TMP_SIZE   64 /* size of temporary buffers */

Definition at line 23 of file hypfs_diag.c.

Enumeration Type Documentation

Enumerator:
INFO_SIMPLE 
INFO_EXT 

Definition at line 36 of file hypfs_diag.c.

enum diag204_sc
Enumerator:
SUBC_STIB4 
SUBC_RSI 
SUBC_STIB6 
SUBC_STIB7 

Definition at line 28 of file hypfs_diag.c.

Function Documentation

struct info_blk_hdr __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

int hypfs_diag_create_files ( struct super_block sb,
struct dentry root 
)

Definition at line 731 of file hypfs_diag.c.

void hypfs_diag_exit ( void  )

Definition at line 613 of file hypfs_diag.c.

__init int hypfs_diag_init ( void  )

Definition at line 588 of file hypfs_diag.c.

Variable Documentation

__u64 acc_time

Definition at line 187 of file hypfs_diag.c.

char buf[]

Definition at line 557 of file hypfs_diag.c.

__u8 cflag

Definition at line 185 of file hypfs_diag.c.

__u32 cpu_addr

Definition at line 182 of file hypfs_diag.c.

__u8 cpus

Definition at line 125 of file hypfs_diag.c.

__u8 ctidx

Definition at line 184 of file hypfs_diag.c.

__u16 cur_weight

Definition at line 209 of file hypfs_diag.c.

__u64 curtod

Definition at line 77 of file hypfs_diag.c.

__u64 curtod1

Definition at line 88 of file hypfs_diag.c.

__u64 curtod2

Definition at line 89 of file hypfs_diag.c.

__u8 flags

Definition at line 73 of file hypfs_diag.c.

__u32 group_mlu

Definition at line 154 of file hypfs_diag.c.

char group_name[8]

Definition at line 155 of file hypfs_diag.c.

Definition at line 556 of file hypfs_diag.c.

u64 len

Definition at line 551 of file hypfs_diag.c.

__u64 lp_time

Definition at line 188 of file hypfs_diag.c.

char lpc_name[8]

Definition at line 148 of file hypfs_diag.c.

__u16 max_weight

Definition at line 210 of file hypfs_diag.c.

char mgm_name

Definition at line 263 of file hypfs_diag.c.

__u64 mgm_time

Definition at line 299 of file hypfs_diag.c.

__u16 min_weight

Definition at line 208 of file hypfs_diag.c.

__u32 mlu

Definition at line 146 of file hypfs_diag.c.

__u8 npar

Definition at line 72 of file hypfs_diag.c.

__u64 online_cs

Definition at line 150 of file hypfs_diag.c.

__u64 online_es

Definition at line 151 of file hypfs_diag.c.

__u64 online_time

Definition at line 212 of file hypfs_diag.c.

char os_name[8]

Definition at line 149 of file hypfs_diag.c.

char part_name

Definition at line 127 of file hypfs_diag.c.

__u8 pflag

Definition at line 145 of file hypfs_diag.c.

__u16 phys_cpus

Definition at line 75 of file hypfs_diag.c.

__u32 pma_weight

Definition at line 214 of file hypfs_diag.c.

__u8 pn

Definition at line 124 of file hypfs_diag.c.

__u32 polar_weight

Definition at line 215 of file hypfs_diag.c.

__u8 rcpus

Definition at line 144 of file hypfs_diag.c.

char reserved[53]

Definition at line 90 of file hypfs_diag.c.

__u64 reserved1

Definition at line 153 of file hypfs_diag.c.

__u64 reserved2

Definition at line 156 of file hypfs_diag.c.

__u32 reserved3

Definition at line 216 of file hypfs_diag.c.

char reseved2[2]

Definition at line 211 of file hypfs_diag.c.

u8 sc

Definition at line 553 of file hypfs_diag.c.

__u16 this_part

Definition at line 76 of file hypfs_diag.c.

__u16 tslice

Definition at line 74 of file hypfs_diag.c.

Definition at line 152 of file hypfs_diag.c.

u16 version

Definition at line 552 of file hypfs_diag.c.

__u64 wait_time

Definition at line 213 of file hypfs_diag.c.

__u16 weight

Definition at line 186 of file hypfs_diag.c.