{"id":22140909,"url":"https://github.com/stealth/aio","last_synced_at":"2025-07-25T23:31:51.882Z","repository":{"id":19470811,"uuid":"22716019","full_name":"stealth/aio","owner":"stealth","description":"scalable Linux implementation for IEEE 1003.1-2004 AIO","archived":false,"fork":false,"pushed_at":"2017-05-18T11:38:12.000Z","size":14,"stargazers_count":7,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-14T04:05:15.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stealth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-07T09:38:28.000Z","updated_at":"2019-01-01T06:53:31.000Z","dependencies_parsed_at":"2022-08-05T04:17:21.608Z","dependency_job_id":null,"html_url":"https://github.com/stealth/aio","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealth%2Faio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealth%2Faio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealth%2Faio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stealth%2Faio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stealth","download_url":"https://codeload.github.com/stealth/aio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227629069,"owners_count":17796054,"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":[],"created_at":"2024-12-01T21:08:34.150Z","updated_at":"2024-12-01T21:08:35.274Z","avatar_url":"https://github.com/stealth.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"AIO\n===\n\nThis is an implementation for Linux of the IEEE 1003.1-2004 (aka POSIX realtime) AIO\nfunctions, utilizing 2.6 kernel's `io_` syscalls rather than using __pthreads__ as in _glibc_.\nHowever, we still need a watcher thread since the Linux `io_` syscalls do not match\nthe AIO specification at all. Therefore we need an extra thread to signal the I/O thread\nabout events. Nevertheless this scales much better than _glibc_ creating a new thread\nfor each asynchronous submit.\n\nBuild\n-----\n\nJust `make` and you will find `aio.o` which you can link to your programs using `aio_` calls.\nYou also need to include the proper _aio.h_ file of course. Do not link against `-lrt` as\nthis contains glibc's version of AIO.\nThis aio lib is thread safe. It also builds and works for __Android__.\nAIO only builds with the `gcc` (still, it is __C99__ code :) since I use some of the GCC\nintrinsics for atomic read/write operations (remember: thread safe!).\n\n\nMisc\n----\n\nI wrote this code for my own purposes (basically a fast backup/restore and forensic tool)\nso its (C) Sebastian Krahmer. However you can use this library under the terms of\nthe GPL.\n\nNote that you need to open files with the `O_DIRECT` flag for _aio_ to work\n(the test files skip that but you need it to ensure real async operation in kernel)\nas well as the memory buffers need to be aligned for disk blocks.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealth%2Faio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstealth%2Faio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstealth%2Faio/lists"}