Motr  M0
klnet_drv.c File Reference
#include <linux/miscdevice.h>
Include dependency graph for klnet_drv.c:

Go to the source code of this file.

Functions

 M0_BASSERT (sizeof(struct nlx_xo_domain)< PAGE_SIZE)
 
 M0_BASSERT (M0_NET_LNET_NIDSTR_SIZE==LNET_NIDSTR_SIZE)
 
static int nlx_dev_ioctl_dom_init (struct nlx_kcore_domain *kd, struct m0_lnet_dev_dom_init_params *p)
 
static int nlx_dev_ioctl_buf_register (struct nlx_kcore_domain *kd, struct m0_lnet_dev_buf_register_params *p)
 
static void nlx_dev_buf_pages_unpin (const struct nlx_kcore_buffer *kb)
 
static int nlx_dev_buf_deregister (struct nlx_kcore_domain *kd, struct nlx_kcore_buffer *kb)
 
static int nlx_dev_ioctl_buf_deregister (struct nlx_kcore_domain *kd, struct m0_lnet_dev_buf_deregister_params *p)
 
static int nlx_dev_ioctl_buf_queue_op (const struct m0_lnet_dev_buf_queue_params *p, nlx_kcore_queue_op_t op)
 
static int nlx_dev_ioctl_buf_del (const struct nlx_kcore_domain *kd, const struct m0_lnet_dev_buf_queue_params *p)
 
static int nlx_dev_ioctl_buf_event_wait (const struct nlx_kcore_domain *kd, const struct m0_lnet_dev_buf_event_wait_params *p)
 
static int nlx_dev_ioctl_nidstr_decode (struct m0_lnet_dev_nid_encdec_params *p)
 
static int nlx_dev_ioctl_nidstr_encode (struct m0_lnet_dev_nid_encdec_params *p)
 
static int nlx_dev_ioctl_nidstrs_get (struct nlx_kcore_domain *kd, struct m0_lnet_dev_nidstrs_get_params *p)
 
static int nlx_dev_ioctl_tm_start (struct nlx_kcore_domain *kd, struct m0_lnet_dev_tm_start_params *p)
 
static int nlx_dev_tm_cleanup (struct nlx_kcore_domain *kd, struct nlx_kcore_transfer_mc *ktm)
 
static int nlx_dev_ioctl_tm_stop (struct nlx_kcore_domain *kd, struct m0_lnet_dev_tm_stop_params *p)
 
static int nlx_dev_ioctl_bev_bless (struct nlx_kcore_domain *kd, struct m0_lnet_dev_bev_bless_params *p)
 
static long nlx_dev_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
static int nlx_dev_open (struct inode *inode, struct file *file)
 
M0_INTERNAL int nlx_dev_close (struct inode *inode, struct file *file)
 
M0_INTERNAL int nlx_dev_init (void)
 
M0_INTERNAL void nlx_dev_fini (void)
 

Variables

static struct file_operations nlx_dev_file_ops
 
static struct miscdevice nlx_dev
 
static bool nlx_dev_registered = false
 

Function Documentation

◆ M0_BASSERT() [1/2]

M0_BASSERT ( )

◆ M0_BASSERT() [2/2]

M0_BASSERT ( M0_NET_LNET_NIDSTR_SIZE  = =LNET_NIDSTR_SIZE)