EDT PCD SDK Documentation 6.1.0
edt_lnx_kernel.h File Reference

(git 1b94ba17, 2024-02-20)

#include "edt_mem_mapping.h"
#include <linux/kconfig.h>
#include <linux/linkage.h>
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/version.h>
#include <linux/irqreturn.h>
#include <linux/semaphore.h>
#include <linux/pci.h>
Include dependency graph for edt_lnx_kernel.h:
This graph shows which files directly or indirectly include this file:

Functions

asmlinkage void * edt_kmalloc (size_t, char *tag)
 
unsigned int edt_cache_free_list_count (void)
 Get number of pages in the cache page list. More...
 
asmlinkage int edt_mem_map_setup (EdtMemMapping *map, int bufsize)
 
asmlinkage int edt_mem_map_clear_sg (EdtMemMapping *map)
 

Detailed Description

Author
EDT tech@.nosp@m.edt..nosp@m.com

Function Documentation

◆ edt_kmalloc()

asmlinkage void * edt_kmalloc ( size_t  size,
char *  tag 
)

Memory Allocation/deallocation

◆ edt_cache_free_list_count()

unsigned int edt_cache_free_list_count ( void  )

Get number of pages in the cache page list.

Pre-allocated cache page pool is setup by edt_cache_create_free_list().

Returns
Total number of pages in the cache list.

◆ edt_mem_map_setup()

asmlinkage int edt_mem_map_setup ( EdtMemMapping *  map,
int  bufsize 
)

edt_mem_map_setup Top-level buffer setup, will fill in map with list of pages and the sglist and sglist broken up into chunks Assumes map->pci_dev is set already

◆ edt_mem_map_clear_sg()

asmlinkage int edt_mem_map_clear_sg ( EdtMemMapping *  map)

delete the sg array defined in edt_mem_map_setup_sg