FreeBSD kernel CXGBE device code
cudbg_common.c File Reference
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include "common/common.h"
#include "cudbg.h"
#include "cudbg_lib_common.h"
Include dependency graph for cudbg_common.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
int get_scratch_buff (struct cudbg_buffer *pdbg_buff, u32 size, struct cudbg_buffer *pscratch_buff)
 
void release_scratch_buff (struct cudbg_buffer *pscratch_buff, struct cudbg_buffer *pdbg_buff)
 
static void init_cudbg_hdr (struct cudbg_init_hdr *hdr)
 
void * cudbg_alloc_handle (void)
 
void cudbg_free_handle (void *handle)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ cudbg_alloc_handle()

void * cudbg_alloc_handle ( void  )

cudbg_alloc_handle - Allocates and initializes a handle that represents cudbg state. Needs to called first before calling any other function.

returns a pointer to memory that has a cudbg_init structure at the begining and enough space after that for internal book keeping.

Definition at line 81 of file cudbg_common.c.

References cudbg_private::dbg_init, cudbg_init::header, and init_cudbg_hdr().

Referenced by cudbg_dump().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ cudbg_free_handle()

void cudbg_free_handle ( void *  handle)

Definition at line 92 of file cudbg_common.c.

◆ get_scratch_buff()

◆ init_cudbg_hdr()

static void init_cudbg_hdr ( struct cudbg_init_hdr hdr)
inlinestatic

◆ release_scratch_buff()