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. …this but then I discovered the kernel developers themselves already made one for their own tools. https://github.com/torvalds/linux/blob/master/tools/include/... People can include this awesome header file in a freestanding C project and…
    comment by matheusmoreira · 2021-10-24 · in OK Lenovo, we need to talk
  2. …before returning. This technique is used in C programs (see Linux Kernel code example here: https://github.com/torvalds/linux/blob/master/fs/ext4/block_... )
  3. …guests. I know that this was looked at a few year ago and no one had made it work then. 0: https://github.com/torvalds/linux/blob/2f111a6fd5b5297b4e92f...
    comment by InvaderFizz · 2021-10-22 · in Show HN: vGPU and SR-IOV on consumer GPUs
  4. …[2] https://github.com/illumos/illumos-gate/blob/master/usr/src/... [3] https://github.com/torvalds/linux/blob/master/arch/s390/incl... [4] https://github.com/torvalds/linux/blob/master/Documentation/... [5] https://github.com/tor
  5. …doing any system specific syscalls and learning about calling conventions you won't get very far. https://github.com/torvalds/linux/blob/master/arch/x86/entry... (subject to change, see your specific kernel source) I think more fun is…
  6. …this point. It doesn't take that much more assembly code to bootstrap C in the Linux kernel on x86: https://github.com/torvalds/linux/blob/master/arch/x86/boot/... There are a bunch of other headers in that file, but the "start_of_setup:"…
  7. …had a hard limit at 128KiB for args + env on x86. After the change it was variable up to 2MiB. https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...
    comment by jeffbee · 2021-10-06 · in Moving Google toward the mainline
  8. …://man7.org/linux/man-pages/man2/syscalls.2.html https://man7.org/linux/man-pages/man2/syscall.2.html https://github.com/torvalds/linux/blob/master/Documentation/... Only on Linux is GNU truly just some optional userland. You can throw it…
    comment by matheusmoreira · 2021-09-30 · in What the GNU?
  9. …g.rchapman.org/posts/Linux_System_Call_Table_for_x... [2] http://asm.sourceforge.net/syscall.html [3] https://github.com/torvalds/linux/blob/master/ipc/syscall.c
  10. ▲ 1
    Kbuild: Only default to -Werror if COMPILE_TEST · torvalds/Linux b339ec9 ·
    story by sam345 · 2021-09-11 · 0 comments
  11. …[0][1], making Wine ... closer to a WSL1 equivalent?) [0] https://lkml.org/lkml/2020/8/10/1323 [1] https://github.com/torvalds/linux/blob/master/include/linux/...
    comment by spijdar · 2021-09-10 · in Windows Subsystem for Linux GUI
  12. “Linux releases as GPLv2 or later for example” Linux doesn’t use “or later”. https://github.com/torvalds/linux/blob/master/COPYING : The Linux Kernel is provided under: SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note Being under…
    comment by Someone · 2021-09-09 · in 60x speed-up of Linux “perf”
  13. …listed here and the underlying systems supporting them. How long could that take, a whole weekend? https://github.com/torvalds/linux/blob/master/arch/x86/entry...
  14. …the topic is your code not your person No he definitely attacks people's person. "You're a moron." https://github.com/torvalds/linux/pull/17#issuecomment-56599...
  15. …because the Go runtime itself was supposed to properly interoperate with a C library but didn't. https://github.com/torvalds/linux/blob/master/Documentation/... > These functions are called just like ordinary C function according to your…
  16. …computing, and to- EventSourcing style- extend the graph of computing as we might see fit. [1] https://github.com/torvalds/linux/tree/master/drivers/leds/t... [2] https://news.ycombinator.com/item?id=28348148
  17. …then also wasn't standard-compliant [2], [3]. [1]: https://github.com/Dunedan/mbp-2016-linux [2]: https://github.com/torvalds/linux/commit/124298bd03acebd9c9d... [3]: https://lists.infradead.org/pipermail/linux-nvme/2017-Februa...
    comment by Dunedan · 2021-08-23 · in Gnome Shell on the Apple M1, bare metal
  18. …or processes are just tasks to the kernel. Kernel threads, which are not user space are different. https://github.com/torvalds/linux/blob/master/include/linux/... The sched wouldn't be able to use a Red-Black trees in the way it does if it…
    comment by nyrikki · 2021-08-20 · in System CPU Usage and Glibc
  19. …For instance, check the linux kernel's explanation of circular buffers and how to use them [1]. [1] https://github.com/torvalds/linux/blob/master/Documentation/... > What does it mean to "relax an edge"? Why do we need to do it V-1 times?…
    comment by kilburn · 2021-08-07 · in Reflections on 10k Hours of Programming
  20. …as explaining how the code is doing something. For example take the app limited detection function: https://github.com/torvalds/linux/blob/master/net/ipv4/tcp_r...
    comment by juancb · 2021-08-06 · in Reflections on 10k Hours of Programming
  21. …random number generation... Too slow to be useful, and the BCM283x SoC already has an internal RNG: https://github.com/torvalds/linux/blob/master/drivers/char/h... > ... or hardware-accelerated hashing The TPM is on a really slow bus (33…
  22. …is making their porting efforts difficult. This commit in upstream ends up getting split in half: https://github.com/torvalds/linux/commit/8ce29c679a6ecefb88d... With only 3 lines of it getting pulled into i40e-2.13.10:…
    comment by nik_0_0 · 2021-07-30 · in Hunting a bug in the i40e Intel driver
  23. …fewer mistakes -vs- confusion where pointers and integers degrade to a common type. A random line: https://github.com/torvalds/linux/blob/122fa8c588316aacafe7e... > void crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) These are…
    comment by viraptor · 2021-07-24 · in Rust for Linux redux
  24. …I interpret it as a way to compete against(proprietary) CUDA dominance, but maybe that is wrong? https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
    comment by flakiness · 2021-07-21 · in Reverse-Engineering the Mali G78
  25. Didn't see a link to the fix. Here it is: https://github.com/torvalds/linux/commit/b29c457a65114359601...
  26. Torvalds did weigh in on it. It's disabled by default because it apparently breaks some legacy stuff. https://github.com/torvalds/linux/commit/561ec64ae67ef25cac8...
    comment by tyingq · 2021-07-06 · in Posix hardlink heartache
  27. …Thanks for the verbatim quote, "namespace lookup" found the source of the message immediately: https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5... . So this uses acpi_os_printf() (defined at…
  28. ▲ 3
    Linux Kernel Parameters Documentation
    story by xanthine · 2021-06-27 · 0 comments
  29. …series to send to the proper reviewers and mailing lists”. Also, Linux is already mirrored to GH https://GitHub.com/torvalds/Linux
    comment by judge2020 · 2021-06-23 · in Pulling GitHub into the Linux kernel process
  30. Sadness trigger warning, brace yourself: https://github.com/torvalds/linux
  31. …this. The Linux kernel itself has a nolibc.h file that they use for their own freestanding tools: https://github.com/torvalds/linux/blob/master/tools/include/... It's even better than what I came up with. Permissively licensed. Supports…
    comment by matheusmoreira · 2021-06-21 · in Ask HN: How to learn proper systems programming?
  32. …(note the double --force). Potentially of interest: `__noreturn machine_real_restart` in reboot.c ( https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5... ) Bonus points for additionally finding a way to trigger the "secure erase"…
  33. There's code in the Linux FTDI driver that correctly handles the bricked FTDI clones: https://github.com/torvalds/linux/blob/master/drivers/usb/se...
    comment by jah · 2021-06-15 · in FTDI FT232RL: Real vs. Fake (2014)
  34. …Public License version 2 only [1] https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html [2] https://github.com/torvalds/linux/blob/master/COPYING
    comment by throwaway2037 · 2021-06-04 · in An Unbelievable Demo
  35. ▲ 1
    Code Fast
    story by kaapipo · 2021-05-18 · 0 comments
  36. …Linux kernel has tons of refcounting, so much so that it has a utility file for reference counters: https://github.com/torvalds/linux/blob/master/include/linux/... )
  37. …are usually submitted as standalone commits. You can find tests for several kernel subsystems here: https://github.com/torvalds/linux/tree/master/tools/testing
    comment by caskstrength · 2021-05-09 · in Dropping cache didn’t drop cache
  38. …source tree. It even links to an interactive tutorial regarding how to set up git-send-email[2] [1] https://github.com/torvalds/linux/blob/master/Documentation/... [2] https://git-send-email.io/
  39. visible on the github repo https://github.com/torvalds/linux
  40. …to do if we need to re-review patches is remove them for now)" warrants an apology in itself. [1] - https://github.com/torvalds/linux/commit/799bac5512188522213... [2] - https://lore.kernel.org/linux-nfs/YIAta3cRl8mk%2FRkH@unreal/ [3] -…
  41. …more amusing assembly syntaxes, I present Blackfin, which looks almost HLL-like at first glance: https://github.com/torvalds/linux/blob/b8c9c8f0190f4004d3d43... . In terms of expressiveness it’s about the same as any other CPU-level…
  42. …commits--just the association of his advisor being one of the authors of the "hypocrite" paper. [0] https://github.com/torvalds/linux/commits?author=pakki001@um... [1] Including his most recent that was successfully applied:…
  43. …and Greg finding several vulnerable commits that reached stable branches and releases. For example: https://github.com/torvalds/linux/commit/8e949363f017 While I'm sure a room of people might find it useful to psychoanalyze their 'unclear'…
    comment by DetroitThrow · 2021-04-21 · in “They introduce kernel bugs on purpose”
  44. But your signed-off-by was a correct email address with your real identity, as per: https://github.com/torvalds/linux/blob/master/Documentation/... Right? It's true that all systems can be gamed and you could no doubt fool the right…
  45. This is one of the commits that went live with "built-in bug" according to Leon: https://github.com/torvalds/linux/commit/8e949363f017
  46. Here's the commit specifically identified by Leon Romanovsky as having a "built-in bug" https://github.com/torvalds/linux/commit/8e949363f017
  47. …2013, and 2008. None of these people appear to be associated with Liu in any significant way. [1]: https://github.com/torvalds/linux/search?q=%22umn.edu%22 [2]: https://github.com/torvalds/linux/search?q=%22umn.edu%22&typ... [3]:…
  48. …was trying to bypass by identifying their commits as now being part of a personal hobby. [0] https://github.com/torvalds/linux/commit/6b389c16378a03fe71f...
  49. …being okay but not great [3]. You can compare ClockPro [4] and DClock [5] in the simulator. [1] https://github.com/torvalds/linux/blob/ac3a0c8472969a03c0496... [2] https://github.com/torvalds/linux/blob/1590a2e1c681b0991bd42... [3]…
  50. see: https://www.kernel.org/doc/html/latest/dev-tools/kunit/index... https://github.com/torvalds/linux/blob/master/tools/testing/...