{"id":19969931,"url":"https://github.com/liigo/kfifo","last_synced_at":"2025-04-12T17:05:25.439Z","repository":{"id":50349209,"uuid":"209277266","full_name":"liigo/kfifo","owner":"liigo","description":"kfifo, a generic userspace FIFO implementation, port from Linux kernel 5.x. Note: requires GCC.","archived":false,"fork":false,"pushed_at":"2024-08-20T01:18:14.000Z","size":34,"stargazers_count":70,"open_issues_count":1,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-26T11:21:21.474Z","etag":null,"topics":["fifo","kfifo","linux"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liigo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-18T10:05:50.000Z","updated_at":"2025-03-04T03:57:45.000Z","dependencies_parsed_at":"2024-11-13T06:03:08.197Z","dependency_job_id":null,"html_url":"https://github.com/liigo/kfifo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liigo%2Fkfifo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liigo%2Fkfifo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liigo%2Fkfifo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liigo%2Fkfifo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liigo","download_url":"https://codeload.github.com/liigo/kfifo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602275,"owners_count":21131613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fifo","kfifo","linux"],"created_at":"2024-11-13T02:52:05.956Z","updated_at":"2025-04-12T17:05:25.390Z","avatar_url":"https://github.com/liigo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kfifo\n\nkfifo, a generic userspace FIFO implementation, port from Linux kernel\n\nhttps://blog.csdn.net/liigo/article/details/100993236\n\n20220224: 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).\n\n----\n\n## original source\n\n\nThe original source files come from Linux kernel tree (v5.3):\n\n- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/lib/kfifo.c\n- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/include/linux/kfifo.h\n\nThe latest [git logs](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/log/lib/kfifo.c):\n\n| Age | Commit message (Expand) | Author | Files | Lines |\n| ---------|---------------------------------------------------------------------|-------------------|-----|--------|\n2019-08-30  |Partially revert \"kfifo: fix kfifo_alloc() and kfifo_init()\"        |Linus Torvalds     |1    |-1/+2\n2019-05-24  |treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 61   |Thomas Gleixner    |1    |-15/+1\n2018-06-12  |treewide: kmalloc() -\u003e kmalloc_array()                              |Kees Cook          |1    |-1/+1\n2018-03-27  |kfifo: fix inaccurate comment                                       |Martin Kelly       |1    |-1/+1\n2014-08-08  |kfifo: use BUG_ON                                                   |Himangi Saraogi    |1    |-4/+2\n2013-11-15  |kfifo: kfifo_copy_{to,from}_user: fix copied bytes calculation      |Lars-Peter Clausen |1    |-2/+2\n2013-02-27  |kfifo: fix kfifo_alloc() and kfifo_init()                           |Stefani Seibold    |1    |-4/+2\n2013-02-27  |kfifo: move kfifo.c from kernel/ to lib/                            |Stefani Seibold    |1    |-0/+609\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliigo%2Fkfifo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliigo%2Fkfifo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliigo%2Fkfifo/lists"}