{"id":18868002,"url":"https://github.com/marcusgrass/linux-rust-bindings","last_synced_at":"2025-10-16T22:56:13.629Z","repository":{"id":121176837,"uuid":"576047675","full_name":"MarcusGrass/linux-rust-bindings","owner":"MarcusGrass","description":"Rust libgen from Linux kernel headers","archived":false,"fork":false,"pushed_at":"2024-02-17T17:02:27.000Z","size":117,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T04:20:01.019Z","etag":null,"topics":["generated-code","linux","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcusGrass.png","metadata":{"files":{"readme":"Readme.md","changelog":"Changelog.md","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}},"created_at":"2022-12-08T22:18:59.000Z","updated_at":"2023-10-05T13:25:47.000Z","dependencies_parsed_at":"2023-12-13T23:46:53.973Z","dependency_job_id":null,"html_url":"https://github.com/MarcusGrass/linux-rust-bindings","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MarcusGrass/linux-rust-bindings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGrass%2Flinux-rust-bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGrass%2Flinux-rust-bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGrass%2Flinux-rust-bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGrass%2Flinux-rust-bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcusGrass","download_url":"https://codeload.github.com/MarcusGrass/linux-rust-bindings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcusGrass%2Flinux-rust-bindings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273888128,"owners_count":25185811,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["generated-code","linux","rust"],"created_at":"2024-11-08T05:12:25.313Z","updated_at":"2025-09-16T03:45:31.320Z","avatar_url":"https://github.com/MarcusGrass.png","language":"Rust","readme":"# Rust bindings directly from the Linux sources\n\nConstants only, since there is to my knowledge only one way to call functions directly from\nthe kernel, and that's through the `vDSO`, only constants needed to communicate through\nthe syscall API are generated.\n\nThe generated code is separated into features based on kernel headers, structs from `fcntl.h` is under \nthe feature `#[cfg(feature = \"fcntl)]`, and so forth.  \n\n## Get sources\n\nGet from [git](https://github.com/torvalds/linux), [kernel archives](https://www.kernel.org/), or wherever.\n\n## Make nolibc from arches\n\n`[\u003cLinux source root\u003e/tools/include/nolibc] make ARCH=\u003carch-linux\u003e OUTPUT=\u003chere\u003e/include-kernel-headers/\u003carch\u003e/ headers_standalone`.  \n`\u003cLinux source root\u003e` is where the linux sources are installed.  \n`\u003carch-linux\u003e` is the Linux naming for the architecture, `aarch64` is `arm64` here.  \n`\u003chere\u003e` is this repo's root directory\n`\u003carch\u003e` is the rust notation of the architecture, ie 64-bit arm is `aarch64`.\n\nWill generate the kernel headers, mind that they are licensed under `LGPL` or `MIT`.  \n\n## License\nThis project is licensed under MPL-2.0, see the license [here.](LICENSE)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusgrass%2Flinux-rust-bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcusgrass%2Flinux-rust-bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusgrass%2Flinux-rust-bindings/lists"}