Motr  M0
node_k.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include "net/test/node.h"
Include dependency graph for node_k.c:

Go to the source code of this file.

Functions

 MODULE_LICENSE ()
 
 module_param (addr, charp, S_IRUGO)
 
 MODULE_PARM_DESC (addr, "endpoint address for node commands")
 
 module_param (addr_console, charp, S_IRUGO)
 
 MODULE_PARM_DESC (addr_console, "endpoint address for console commands")
 
 module_param (timeout, ulong, S_IRUGO)
 
 MODULE_PARM_DESC (timeout, "command send timeout, seconds")
 
static int __init m0_net_test_module_init (void)
 
static void __exit m0_net_test_module_fini (void)
 

Variables

static char * addr = NULL
 
static char * addr_console = NULL
 
static unsigned long timeout = 3
 

Function Documentation

◆ m0_net_test_module_fini()

static void __exit m0_net_test_module_fini ( void  )
static

Definition at line 61 of file node_k.c.

Here is the call graph for this function:

◆ m0_net_test_module_init()

static int __init m0_net_test_module_init ( void  )
static

Definition at line 50 of file node_k.c.

Here is the call graph for this function:

◆ MODULE_LICENSE()

MODULE_LICENSE ( )

◆ module_param() [1/3]

module_param ( addr  ,
charp  ,
S_IRUGO   
)

◆ module_param() [2/3]

module_param ( addr_console  ,
charp  ,
S_IRUGO   
)

◆ module_param() [3/3]

module_param ( timeout  ,
ulong  ,
S_IRUGO   
)

◆ MODULE_PARM_DESC() [1/3]

MODULE_PARM_DESC ( addr  ,
"endpoint address for node commands  
)

◆ MODULE_PARM_DESC() [2/3]

MODULE_PARM_DESC ( addr_console  ,
"endpoint address for console commands  
)

◆ MODULE_PARM_DESC() [3/3]

MODULE_PARM_DESC ( timeout  ,
"command send  timeout,
seconds"   
)

Variable Documentation

◆ addr

char* addr = NULL
static

Definition at line 37 of file node_k.c.

◆ addr_console

char* addr_console = NULL
static

Definition at line 38 of file node_k.c.

◆ timeout

unsigned long timeout = 3
static

Definition at line 39 of file node_k.c.