{"id":16191173,"url":"https://github.com/simonbaeumer/kernel-playground","last_synced_at":"2026-04-29T00:34:41.748Z","repository":{"id":122782953,"uuid":"186564772","full_name":"SimonBaeumer/kernel-playground","owner":"SimonBaeumer","description":"My linux kernel playground ","archived":false,"fork":false,"pushed_at":"2021-08-15T17:10:54.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-11T22:14:34.870Z","etag":null,"topics":["kernel","linux"],"latest_commit_sha":null,"homepage":"","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/SimonBaeumer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-14T07:06:57.000Z","updated_at":"2021-08-15T17:10:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"fccda6b3-7f1e-4673-9d75-9fb63f989346","html_url":"https://github.com/SimonBaeumer/kernel-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SimonBaeumer/kernel-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonBaeumer%2Fkernel-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonBaeumer%2Fkernel-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonBaeumer%2Fkernel-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonBaeumer%2Fkernel-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimonBaeumer","download_url":"https://codeload.github.com/SimonBaeumer/kernel-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonBaeumer%2Fkernel-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["kernel","linux"],"created_at":"2024-10-10T07:45:15.480Z","updated_at":"2026-04-29T00:34:41.741Z","avatar_url":"https://github.com/SimonBaeumer.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Installation\n\n```\n$ cd modules/hello\n$ make\n$ sudo insmod hello.ko howmany=10 whom=\"Mars\"\n$ sudo rmmod hello\n```\n\nDisplay logs with `tail -f /var/log/syslog`\n\n### Notes\n\n - Functions starting with `__` are generally a low level component and should be used with caution.\n - Kernel has no floating point arithmetic.\n - Kernel stack is 2*PAGE_SIZE big (x86_64 page size is 4K), functions share this stack with the entire kernel-space. Larger structures are allocated dynamically at runtime.\n - `Documentation/Change` lists all requirments for building a linux kernel\n - system calls are prefixed with `sys_`\n - export symbols with `EXPORT_SYMBOL(name)` or `EXPORT_SYMBOL_GPL(name)`\n - add a metadata to the module, i.e. `MODULE_LICENSE(\"GPL\")`, `MODULE_AUTHOR(\"simon\")`, `MODULE_VERSION()`, `MODULE_DESCRIPTION()` and `MODULE_ALIAS()`\n - to allocate RAM use `kmalloc` and `kfree` from `linux/slab.h` \n\n#### Drivers\n\n - register a new device `int register_chardev_region(dev_t first, unsigned int count, char *name);`\n   - dynamic allocation `int alloc_chrdev_region(dev_t *dev, unsinged int firstminor, unsigned int count, char *name)`\n   - unregister `void unregister_chrdev_region(dev_t first, unsinged int count)`\n   - statically assigned devices numers in `Documentation/admin-guide/devices.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbaeumer%2Fkernel-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonbaeumer%2Fkernel-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonbaeumer%2Fkernel-playground/lists"}