Hacker GitHub

← All repos

torvalds/linux

View on GitHub ↗ ★ 254,124 C

Linux kernel source tree

947 mentions on Hacker News by 745 people: 99 stories, 848 comments · first 2010-07-15 · latest 2026-10-29

Mentions per year 947 mentions · busiest year 2022 (104)
20082026
  1. …requests will fail with preemptive OOMs. (e.g. postgresql servers typically disable overcommit) - https://github.com/torvalds/linux/blob/master/mm/util.c#L753
  2. …exclusive access to a list won't stop you from adding the same element to multiple lists. [0]: https://github.com/torvalds/linux/blob/3e0ae02ba831da2b70790...
  3. …code organization would have eliminated the need for the unsafe block in this specific case. [0]: https://github.com/torvalds/linux/blob/3e0ae02ba831da2b70790...
  4. …}; } needs_queueing } [0]: https://lore.kernel.org/linux-cve-announce/2025121614-CVE-20... [1]: https://github.com/torvalds/linux/commit/3e0ae02ba831da2b707... [2]: https://github.com/torvalds/linux/blob/3e0ae02ba831da2b70790... [3]:…
  5. …init= option to kernel."[2] 1: https://github.com/archlinux/mkinitcpio/blob/2dc9e12814aafcc... 2: https://github.com/torvalds/linux/blob/d358e5254674b70f34c84...
  6. …hard to write. Mostly Rust has been used for drivers so far. Here's the first Rust driver I found: https://github.com/torvalds/linux/blob/2137cb863b80187103151... It has one trivial use of `unsafe` - to support Send & Sync for a type - and…
  7. …Zig community lead going off about RAII before and making claims like "linux would never do this" ( https://github.com/torvalds/linux/blob/master/include/linux/... ). There are bad cases of RAII APIs for sure, but it's not all bad. Andrew…
    comment by raggi · 2025-12-04 · in Thoughts on Go vs. Rust vs. Zig
  8. …either, look at the Linux kernels PRs, it's almost all spam. Why on earth can't PRs be disabled? https://github.com/torvalds/linux/pulls?q=is%3Apr+is%3Aclose...
  9. There is a C API. man landlock_add_rule for example. https://github.com/torvalds/linux/blob/master/include/uapi/l... you can add simple one-line wrappers if you don't like using syscall() function.
    comment by megous · 2025-11-30 · in Landlock-Ing Linux
  10. …not just calling syscall() with a magic number: https://docs.kernel.org/userspace-api/landlock.html https://github.com/torvalds/linux/blob/6bda50f4/include/uapi... https://github.com/torvalds/linux/blob/6bda50f4/include/linu...
    comment by wging · 2025-11-30 · in Landlock-Ing Linux
  11. …the Linux repo are quite terrible. At least there's a bot to auto-reply with the correct procedure. https://github.com/torvalds/linux/pull/1370
  12. It is strange, cursory digging for an explanation was a little more complex than I bargained for... https://github.com/torvalds/linux/blob/v6.17/fs/binfmt_scrip... I think it makes it to calling open_exec but there's a test for…
  13. …part of same sentence. The latter one (goto) is routinely used by linux devs (random example: https://github.com/torvalds/linux/blob/master/fs/ext4/balloc... ) > we just stop using it. We minimise/restrict the usage.
  14. Have a look at X1E devicetree in Linux kernel source ( https://github.com/torvalds/linux/tree/master/arch/arm64/boo... all the way to the bottom). There are some models that have a very active development and an almost complete support by…
    comment by cromka · 2025-11-15 · in Linux on the Fujitsu Lifebook U729
  15. That's right! https://lwn.net/Articles/631631/ https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.... Especially relevant for dynamic linkers is the AT_PHDR and AT_BASE auxiliary vector entries which provide the address of the…
    comment by matheusmoreira · 2025-10-26 · in The Journey Before main()
  16. …The kernel has their own nolibc infrastructure now, no doubt much better than my project. https://github.com/torvalds/linux/tree/master/tools/include/... I encourage everyone to use it. Note also that _start is an arbitrary symbol. The…
    comment by matheusmoreira · 2025-10-26 · in The Journey Before main()
  17. …to filters on the commit date, not the author date. Broken link points here and shows no commits: https://github.com/torvalds/linux/commits?author=vkoskiv&sin... If I correct the date range to include the maintainer commit date (May 15th),…
    comment by vkoskiv · 2025-10-20 · in My first contribution to Linux
  18. https://github.com/torvalds/linux/pull/1355
    comment by throwawaylnx · 2025-10-15 · in GitHub Bans Vmfunc
  19. …to fix the bug but never did. It also contains quirks for Intel x86 core platform features: https://github.com/torvalds/linux/blob/master/arch/x86/kerne... For the now-fashionable LLMs-on-GPUs world, it's pretty much just matrix…
  20. …to be superior to Github's and once complained about the latter on Github itself [1]. [1] https://github.com/torvalds/linux/pull/17#issuecomment-56546...
  21. …error = old_dir->i_op->rename(rd->new_mnt_idmap, old_dir, old_dentry, new_dir, new_dentry, flags); https://github.com/torvalds/linux/blob/master/fs/namei.c#L51... That is a close match for the first example, with additional arguments. It…
  22. …https://github.com/openbsd/src/blob/master/sys/arch/amd64/am... 3. Relevant Linux kernel code: https://github.com/torvalds/linux/blob/master/arch/x86/kerne... , https://github.com/torvalds/linux/blob/master/arch/x86/kerne... 4. Linux…
  23. The latest kernel as of today still supports the 486SX ! ( https://github.com/torvalds/linux/blob/v6.17-rc1/arch/x86/Kc... )
    comment by matja · 2025-08-14 · in Debian 13 “Trixie”
  24. …even refuses to parse many them: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tor... https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... The last file in nbio is a header file with 38900 lines — a single file of…
  25. https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... 11k lines of #defines Is this truly necessary?
  26. …NOT compiled code. It's a huge part of Linux, too, over at drivers/gpu/drm/amd/include/asic_reg : https://github.com/torvalds/linux/tree/master/drivers/gpu/dr... In OpenBSD, the last release before the explosive growth, was OpenBSD 6.5…
  27. …folio for a whole set of pages, so moving the data there will save a significant amount of memory. https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317...
  28. struct page in Linux is this taken to its logical conclusion. https://github.com/torvalds/linux/blob/89be9a83ccf1f88522317... Edit: A bit of background: https://lwn.net/Articles/565097/
  29. …changes in the commit messages: - https://docs.kernel.org/process/submitting-patches.html#desc... - https://github.com/torvalds/linux/blob/master/Documentation/... - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... Git's own…
    comment by andrybak · 2025-07-04 · in A Higgs-Bugson in the Linux Kernel
  30. …me: it made me think about ways I could reinvent email. [1] https://github.com/openssl/openssl [2] https://github.com/torvalds/linux
    comment by dvt · 2025-07-01 · in Why email startups fail
  31. …some of these C programs: https://github.com/nodejs/node https://github.com/mozilla-firefox/firefox https://github.com/torvalds/linux https://github.com/python/cpython
  32. Yeah, it's very easy. Real devices usually adhere to the specs.. only very few exceptions: https://github.com/torvalds/linux/blame/master/drivers/hid/h... .. /s
  33. …the kernel’s internal ABI and API is constantly changing. There is some documentation on why here: https://github.com/torvalds/linux/blob/master/Documentation/...
  34. …most of it seems to be down to a single commit that removed repeated usage of fuck from one file: https://github.com/torvalds/linux/commit/a44d924c81d43ddffc9...
  35. …of “Firefox Moves to GitHub”? It could be a mirror, just like Linux also has an mirror on GitHub. https://github.com/torvalds/linux // EDIT: Source: https://news.ycombinator.com/item?id=43970574
    comment by mritzmann · 2025-05-13 · in Mozilla Firefox – Official GitHub repo
  36. …board. So what happens is that Armbian ship a different image for each board. If you go and look in https://github.com/torvalds/linux/tree/master/arch/arm you see a zillion "mach-xxx" directories for different SoC architectures, even if…
  37. …essentially a sorted list of arguments for the mmap system call. This is Linux kernel's ELF loader: https://github.com/torvalds/linux/blob/master/fs/binfmt_elf.... It basically just mmaps in the PT_LOAD segments of the ELF file, copies…
    comment by matheusmoreira · 2025-04-30 · in Path Isn't Real on Linux
  38. …call wrappers for more efficient access. The vDSO is a documented stable Linux kernel interface: https://github.com/torvalds/linux/blob/master/Documentation/... It's just a perfectly normal ELF shared object that the kernel maps into the…
    comment by matheusmoreira · 2025-04-30 · in Path Isn't Real on Linux
  39. …user space and kernel is quite clear: the system call layer. It is stable and well documented. https://github.com/torvalds/linux/blob/master/Documentation/... System libraries like glibc are not part of the kernel, they are just components…
    comment by matheusmoreira · 2025-04-30 · in Path Isn't Real on Linux
  40. …of trivia about the shebang support in Linux is that is possible to build the kernel without it. https://github.com/torvalds/linux/blob/master/fs/Kconfig.bin... config BINFMT_SCRIPT tristate "Kernel support for scripts starting with #!"…
    comment by khrbtxyz · 2025-04-30 · in Path Isn't Real on Linux
  41. …effort. Still worth it compared to the alternative of writing a linux kernel driver though! [0]: https://github.com/torvalds/linux/commit/bc895e8b2a64e502fbb... [1]: https://github.com/torvalds/linux/blob/bc895e8b2a64e502fbba7...
  42. …his position on this topic? Well, he's not a fan of GitHub pull request as per the last decade. https://github.com/torvalds/linux/pull/17#issuecomment-56546...
  43. …seems to be actively contributing in GitHub for the Linux kernel repository (also created by him): https://github.com/torvalds/linux Anyone has seen his position on this topic?
  44. …Coe's ratio: https://people.cs.vt.edu/~naren/Courses/CS3414/assignments/p... (3rd page) Linux code: https://github.com/torvalds/linux/blob/b0cb56cbbdb4754918c28...
    comment by rwmj · 2025-03-24 · in Intel: A Bug and a Pro
  45. …e.g. the `squash_the_stupid_serial_number` name did actually exist before the cregited commit: https://github.com/torvalds/linux/commit/0a488a53d7ca46ac638... (Perhaps this could be related to there being multiple function implementations…
  46. …only pointing out that it hasn’t happened in practice. Also check the Android Binder code before (C https://github.com/torvalds/linux/blob/master/drivers/androi... ) and after (Rust - https://android.googlesource.com/platform/frameworks/nat…
  47. …remove GPL as a factor ? No reason it must? AFAIK all Rust for Linux code is GPL2. For example see: https://github.com/torvalds/linux/blob/master/rust/kernel/al... If some was or were to be licensed as MIT code, there is also plenty of…
    comment by mustache_kimono · 2025-03-10 · in Rewriting essential Linux packages in Rust
  48. …email client. There are some hints regarding email clients here, though focused on sending patches: https://github.com/torvalds/linux/blob/master/Documentation/...
    comment by layer8 · 2025-03-06 · in Git without a forge
  49. …to the Linux kernel even references OpenBSD pledge(2)/unveil(2) as a source of inspiration. https://github.com/torvalds/linux/commit/17ae69aba89dbfa2139... https://lore.kernel.org/linux-security-module/20210422154123...
    comment by brynet · 2025-02-23 · in OpenBSD Innovations
  50. …And you can see under samples/rust that only a kbuild-style Makefile is provided: https://github.com/torvalds/linux/tree/master/samples/rust