libubox
C utility functions for OpenWrt.
udebug-priv.h File Reference
#include "blobmsg.h"
#include "udebug.h"
#include "udebug-proto.h"

Go to the source code of this file.

Macros

#define UDEBUG_TIMEOUT   1000
 

Functions

 __attribute__ ((visibility("hidden"))) int udebug_buf_open(struct udebug_buf *buf
 
static int32_t u32_sub (uint32_t a, uint32_t b)
 
static int32_t u32_max (uint32_t a, uint32_t b)
 
static void u32_set (void *ptr, uint32_t val)
 
static uint32_t u32_get (void *ptr)
 

Variables

int fd
 
int uint32_t ring_size
 
int uint32_t uint32_t data_size
 
struct udebug_client_msgmsg
 
struct udebug_client_msg int * rfd
 

Macro Definition Documentation

◆ UDEBUG_TIMEOUT

#define UDEBUG_TIMEOUT   1000

Definition at line 25 of file udebug-priv.h.

Function Documentation

◆ __attribute__()

__attribute__ ( (visibility("hidden"))  )

◆ u32_get()

static uint32_t u32_get ( void *  ptr)
inlinestatic

Definition at line 47 of file udebug-priv.h.

48 {
49  volatile uint32_t *v = ptr;
50  return *v;
51 }
Here is the caller graph for this function:

◆ u32_max()

static int32_t u32_max ( uint32_t  a,
uint32_t  b 
)
inlinestatic

Definition at line 36 of file udebug-priv.h.

37 {
38  return u32_sub(a, b) > 0 ? a : b;
39 }
static struct blob_buf b
Definition: jshn.c:40
static int32_t u32_sub(uint32_t a, uint32_t b)
Definition: udebug-priv.h:31
Here is the call graph for this function:
Here is the caller graph for this function:

◆ u32_set()

static void u32_set ( void *  ptr,
uint32_t  val 
)
inlinestatic

Definition at line 41 of file udebug-priv.h.

42 {
43  volatile uint32_t *v = ptr;
44  *v = val;
45 }
Here is the caller graph for this function:

◆ u32_sub()

static int32_t u32_sub ( uint32_t  a,
uint32_t  b 
)
inlinestatic

Definition at line 31 of file udebug-priv.h.

32 {
33  return a - b;
34 }
Here is the caller graph for this function:

Variable Documentation

◆ data_size

int uint32_t uint32_t data_size

Definition at line 27 of file udebug-priv.h.

◆ fd

int fd

Definition at line 27 of file udebug-priv.h.

◆ msg

struct udebug_client_msg* msg

Definition at line 29 of file udebug-priv.h.

◆ rfd

struct udebug_client_msg int* rfd

Definition at line 29 of file udebug-priv.h.

◆ ring_size

int uint32_t ring_size

Definition at line 27 of file udebug-priv.h.