File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change 15
15
#include <cpu.h>
16
16
#include <per_cpu.h>
17
17
18
- static inline bool sbuf_is_empty (const struct shared_buf * sbuf )
19
- {
20
- return (sbuf -> head == sbuf -> tail );
21
- }
22
-
23
18
uint32_t sbuf_next_ptr (uint32_t pos_arg ,
24
19
uint32_t span , uint32_t scope )
25
20
{
@@ -29,30 +24,6 @@ uint32_t sbuf_next_ptr(uint32_t pos_arg,
29
24
return pos ;
30
25
}
31
26
32
- uint32_t sbuf_get (struct shared_buf * sbuf , uint8_t * data )
33
- {
34
- const void * from ;
35
- uint32_t ele_size ;
36
-
37
- stac ();
38
- if (sbuf_is_empty (sbuf )) {
39
- clac ();
40
- /* no data available */
41
- return 0 ;
42
- }
43
-
44
- from = (void * )sbuf + SBUF_HEAD_SIZE + sbuf -> head ;
45
-
46
- (void )memcpy_s ((void * )data , sbuf -> ele_size , from , sbuf -> ele_size );
47
-
48
- sbuf -> head = sbuf_next_ptr (sbuf -> head , sbuf -> ele_size , sbuf -> size );
49
-
50
- ele_size = sbuf -> ele_size ;
51
- clac ();
52
-
53
- return ele_size ;
54
- }
55
-
56
27
/**
57
28
* The high caller should guarantee each time there must have
58
29
* sbuf->ele_size data can be write form data and this function
You can’t perform that action at this time.
0 commit comments