We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2ad3517 + 7d84c4c commit 9c0420dCopy full SHA for 9c0420d
kernel/pipe.c
@@ -34,21 +34,6 @@ static inline uint16_t pipe_free_space_internal(const pipe_t *p)
34
return (p->mask + 1) - p->used;
35
}
36
37
-static inline char pipe_get_byte(pipe_t *p)
38
-{
39
- char val = p->buf[p->head];
40
- p->head = (p->head + 1) & p->mask;
41
- p->used--;
42
- return val;
43
-}
44
-
45
-static inline void pipe_put_byte(pipe_t *p, char c)
46
47
- p->buf[p->tail] = c;
48
- p->tail = (p->tail + 1) & p->mask;
49
- p->used++;
50
51
52
/* bulk read operation within critical section */
53
static uint16_t pipe_bulk_read(pipe_t *p, char *dst, uint16_t max_bytes)
54
{
0 commit comments