Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liigo/kfifo
kfifo, a generic userspace FIFO implementation, port from Linux kernel 5.x. Note: requires GCC.
https://github.com/liigo/kfifo
fifo kfifo linux
Last synced: 2 days ago
JSON representation
kfifo, a generic userspace FIFO implementation, port from Linux kernel 5.x. Note: requires GCC.
- Host: GitHub
- URL: https://github.com/liigo/kfifo
- Owner: liigo
- License: gpl-2.0
- Created: 2019-09-18T10:05:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T01:18:14.000Z (5 months ago)
- Last Synced: 2024-12-24T21:07:10.857Z (9 days ago)
- Topics: fifo, kfifo, linux
- Language: C
- Homepage:
- Size: 33.2 KB
- Stars: 66
- Watchers: 5
- Forks: 28
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kfifo
kfifo, a generic userspace FIFO implementation, port from Linux kernel
https://blog.csdn.net/liigo/article/details/100993236
20220224: added `ringbuf_t` (ring buffer), a simple copy of kfifo removing usage of typeof, which is not available in ANSI C and some ancient C compilers (I'm looking at you, CodeWarrior 5.1).
----
## original source
The original source files come from Linux kernel tree (v5.3):
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/lib/kfifo.c
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/kfifo.hThe latest [git logs](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/lib/kfifo.c):
| Age | Commit message (Expand) | Author | Files | Lines |
| ---------|---------------------------------------------------------------------|-------------------|-----|--------|
2019-08-30 |Partially revert "kfifo: fix kfifo_alloc() and kfifo_init()" |Linus Torvalds |1 |-1/+2
2019-05-24 |treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61 |Thomas Gleixner |1 |-15/+1
2018-06-12 |treewide: kmalloc() -> kmalloc_array() |Kees Cook |1 |-1/+1
2018-03-27 |kfifo: fix inaccurate comment |Martin Kelly |1 |-1/+1
2014-08-08 |kfifo: use BUG_ON |Himangi Saraogi |1 |-4/+2
2013-11-15 |kfifo: kfifo_copy_{to,from}_user: fix copied bytes calculation |Lars-Peter Clausen |1 |-2/+2
2013-02-27 |kfifo: fix kfifo_alloc() and kfifo_init() |Stefani Seibold |1 |-4/+2
2013-02-27 |kfifo: move kfifo.c from kernel/ to lib/ |Stefani Seibold |1 |-0/+609