Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
xpc_main.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/sysctl.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/kdebug.h>
#include <linux/kthread.h>
#include "xpc.h"

Go to the source code of this file.

Functions

 DEFINE_SPINLOCK (xpc_activate_IRQ_rcvd_lock)
 
 DECLARE_WAIT_QUEUE_HEAD (xpc_activate_IRQ_wq)
 
voidxpc_kzalloc_cacheline_aligned (size_t size, gfp_t flags, void **base)
 
void xpc_activate_partition (struct xpc_partition *part)
 
void xpc_activate_kthreads (struct xpc_channel *ch, int needed)
 
void xpc_create_kthreads (struct xpc_channel *ch, int needed, int ignore_disconnecting)
 
void xpc_disconnect_wait (int ch_number)
 
int __init xpc_init (void)
 
 module_init (xpc_init)
 
void __exit xpc_exit (void)
 
 module_exit (xpc_exit)
 
 MODULE_AUTHOR ("Silicon Graphics, Inc.")
 
 MODULE_DESCRIPTION ("Cross Partition Communication (XPC) support")
 
 MODULE_LICENSE ("GPL")
 
 module_param (xpc_hb_interval, int, 0)
 
 MODULE_PARM_DESC (xpc_hb_interval,"Number of seconds between ""heartbeat increments.")
 
 module_param (xpc_hb_check_interval, int, 0)
 
 MODULE_PARM_DESC (xpc_hb_check_interval,"Number of seconds between ""heartbeat checks.")
 
 module_param (xpc_disengage_timelimit, int, 0)
 
 MODULE_PARM_DESC (xpc_disengage_timelimit,"Number of seconds to wait ""for disengage to complete.")
 
 module_param (xpc_kdebug_ignore, int, 0)
 
 MODULE_PARM_DESC (xpc_kdebug_ignore,"Should lack of heartbeat be ignored by ""other partitions when dropping into kdebug.")
 

Variables

struct device_driver xpc_dbg_name
 
struct device xpc_part_dbg_subname
 
struct device xpc_chan_dbg_subname
 
struct devicexpc_part = &xpc_part_dbg_subname
 
struct devicexpc_chan = &xpc_chan_dbg_subname
 
int xpc_disengage_timelimit = XPC_DISENGAGE_DEFAULT_TIMELIMIT
 
int xpc_disengage_timedout
 
int xpc_activate_IRQ_rcvd
 
struct xpc_arch_operations xpc_arch_ops
 

Function Documentation

DECLARE_WAIT_QUEUE_HEAD ( xpc_activate_IRQ_wq  )
DEFINE_SPINLOCK ( xpc_activate_IRQ_rcvd_lock  )
MODULE_AUTHOR ( "Silicon  Graphics,
Inc."   
)
MODULE_DESCRIPTION ( "Cross Partition Communication (XPC) support )
module_exit ( xpc_exit  )
module_init ( xpc_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( xpc_hb_interval  ,
int  ,
 
)
module_param ( xpc_hb_check_interval  ,
int  ,
 
)
module_param ( xpc_disengage_timelimit  ,
int  ,
 
)
module_param ( xpc_kdebug_ignore  ,
int  ,
 
)
MODULE_PARM_DESC ( xpc_hb_interval  ,
"Number of seconds between ""heartbeat increments."   
)
MODULE_PARM_DESC ( xpc_hb_check_interval  ,
"Number of seconds between ""heartbeat checks."   
)
MODULE_PARM_DESC ( xpc_disengage_timelimit  ,
"Number of seconds to wait ""for disengage to complete."   
)
MODULE_PARM_DESC ( xpc_kdebug_ignore  ,
"Should lack of heartbeat be ignored by ""other partitions when dropping into kdebug."   
)
void xpc_activate_kthreads ( struct xpc_channel ch,
int  needed 
)

Definition at line 613 of file xpc_main.c.

void xpc_activate_partition ( struct xpc_partition part)

Definition at line 587 of file xpc_main.c.

void xpc_create_kthreads ( struct xpc_channel ch,
int  needed,
int  ignore_disconnecting 
)

Definition at line 775 of file xpc_main.c.

void xpc_disconnect_wait ( int  ch_number)

Definition at line 850 of file xpc_main.c.

void __exit xpc_exit ( void  )

Definition at line 1319 of file xpc_main.c.

int __init xpc_init ( void  )

Definition at line 1201 of file xpc_main.c.

void* xpc_kzalloc_cacheline_aligned ( size_t  size,
gfp_t  flags,
void **  base 
)

Definition at line 379 of file xpc_main.c.

Variable Documentation

int xpc_activate_IRQ_rcvd

Definition at line 138 of file xpc_main.c.

Definition at line 165 of file xpc_main.c.

Definition at line 73 of file xpc_main.c.

struct device xpc_chan_dbg_subname
Initial value:
= {
.init_name = "",
.driver = &xpc_dbg_name
}

Definition at line 67 of file xpc_main.c.

struct device_driver xpc_dbg_name
Initial value:
= {
.name = "xpc"
}

Definition at line 58 of file xpc_main.c.

int xpc_disengage_timedout

Definition at line 135 of file xpc_main.c.

int xpc_disengage_timelimit = XPC_DISENGAGE_DEFAULT_TIMELIMIT

Definition at line 87 of file xpc_main.c.

Definition at line 72 of file xpc_main.c.

struct device xpc_part_dbg_subname
Initial value:
= {
.init_name = "",
.driver = &xpc_dbg_name
}

Definition at line 62 of file xpc_main.c.