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. …The check has been removed in recent kernels, so I had to go back in history a bit to find it. https://github.com/torvalds/linux/blob/521cb40b0c44418a4fd36...
    comment by avian · 2022-06-27 · in What does an idle CPU do? (2014)
  2. …handle the EINTR when calling write() in the printf and echo builtins. [2] https://github.com/torvalds/linux/blob/ca1fdab7fd27eb069df13... Q: what's up with this '/bin/echo' ? A: bash's builtin 'echo' command does not check calls to
    comment by alipitch · 2022-06-22 · in Effective Shell
  3. The Linux kernel uses chained hash tables in many places. https://github.com/torvalds/linux/blob/master/include/linux/...
  4. …C code. E.g., just a cherry-picked file from Linux: kernel/sched/core.c is over 11k lines. https://github.com/torvalds/linux/blob/master/kernel/sched/c...
  5. …everywhere - not just for email patches. [1] https://www.git-scm.com/docs/git-request-pull [2] https://github.com/torvalds/linux/pull/17#issuecomment-56546... [3] https://aerc-mail.org/
    comment by sreevisakh · 2022-06-07 · in Bleh
  6. …be fixed in 5.18, but I didn't verify as I haven't had much reason to use suspend lately. [1]: https://github.com/torvalds/linux/commit/dfbba2518aac4204203...
    comment by Beltalowda · 2022-05-26 · in splice() and the ghost of set_fs()
  7. https://github.com/torvalds/linux/tree/master/scripts
    comment by drchickensalad · 2022-05-25 · in GameShell: A game to learn or teach the Unix shell
  8. …not, I just haven't read anything). [0] https://github.com/jvm-profiling-tools/perf-map-agent [1] https://github.com/torvalds/linux/blob/master/tools/perf/Doc...
  9. …low bits of a pointer aligned to 2^n bytes. If you run out of bits there, not much you can do. [0] https://github.com/torvalds/linux/blob/master/include/linux/...
  10. No. https://github.com/torvalds/linux https://referencesource.microsoft.com/ https://github.com/redis/redis I am sure there are lots of others.
    comment by mikequinlan · 2022-04-30 · in Ask HN: Is all code crap?
  11. …to commits don't include the branch (and the way git works, commits don't really have "a branch"): https://github.com/torvalds/linux/commit/ac632c504d0b881d7cf... >With "git log --format=oneline | cut -b 1-4 | uniq -c | sort -n | tail…
  12. I'd rather use a tag, e.g. https://github.com/torvalds/linux/blob/v5.18-rc4/kernel/dma/...
  13. You know you can shorten the commit hash? For example https://github.com/torvalds/linux/blob/9e02977bfa/kernel/dma... I don't find this ugly, it's even very human readable. There's all info in the url that you even can use in the future if…
  14. …from trivial to understand to WTF. These are all real-world applications: - Linux kernel (events) - https://github.com/torvalds/linux/blob/master/kernel/events/... - Arm CMSIS - (16-bit math) - https://github.com/ARM-software/CMSIS_5/blob/d…
  15. …(probably uninteresting), but you will see any ffi calls (e.g., numpy) with proper stacks. [1]: https://github.com/torvalds/linux/blob/master/tools/perf/Doc...
  16. …but not 5.18-rc2+, you'd be crashing every time you try to wake from suspend right now.[1] [1]: https://github.com/torvalds/linux/commit/dfbba2518aac4204203...
  17. …https://stackoverflow.com/questions/5112097/what-is-the-code... https://github.com/torvalds/linux/tree/master/kernel/sched
    comment by peter_d_sherman · 2022-04-16 · in Operating Systems: CPU Scheduling
  18. …well after 2009. I guess it either got changed, or, a different patch applied but perhaps this https://github.com/torvalds/linux/blob/master/fs/ext4/namei.... does it?
  19. …the failure. Usually shells default to running the file as a shell script with itself as argv0. [1] https://github.com/torvalds/linux/blob/3e732ebf7316ac83e8562...
    comment by gnarula · 2022-04-06 · in You can do a lot with an empty file
  20. …Linus is going to feel real silly about this one. Oh well, get ready for the zero days! https://github.com/torvalds/linux
    comment by ineedasername · 2022-04-01 · in Hackers Leak Lichess Source Code
  21. …enough" for upstream, since they can presumably at least run minimal testing on the driver paths: https://github.com/torvalds/linux/commit/a9498ee575fa116e289... - Microsoft's DXGI/whatever-it's-called driver for compute is still not…
    comment by aseipp · 2022-03-31 · in Open-source drivers according to Habana
  22. …on 386/486". Cargo-cult programming at its finest :) That's weird. I tracked down the commit: https://github.com/torvalds/linux/commit/2ee2394b682c0ee99b0... > Actually, with all the crazy out-of-order speculative execution going on I…
  23. …Looks like Linux nowadays does the far jump immediately after setting cr0, thus doing two in one: https://github.com/torvalds/linux/blob/master/arch/x86/boot/... But the near and far jump (if you use both) still have VERY different…
  24. …example, the same mechanism got adapted to Chromebooks+Coreboot and now uses that same driver here: https://github.com/torvalds/linux/commit/d384d6f43d1ec3f1225...
  25. …to the public? Drivers is an unequivocal "yes". Here's an example -- from Google, in fact: https://github.com/torvalds/linux/commit/e561bc45920aade3f8a... Architectures is less likely. But the pendulum has swung away from "making your own…
  26. …f10 sends f10, not mute because you forgot to press fn+f10. You can find some other options in https://github.com/torvalds/linux/blob/c5d9ae265b105d9a67575... as well
    comment by zamadatix · 2022-03-19 · in Asahi Linux alpha release
  27. …knowledge gained in the article, you would probably figure out what are the different parts. [1] https://github.com/torvalds/linux/blob/master/drivers/tty/se...
    comment by antoinealb · 2022-03-15 · in Writing a device driver for Unix V6
  28. …better do word-wrapping at commit time, because that's the only time you know the difference. [0] https://github.com/torvalds/linux/pull/17#issuecomment-56611... edit I realise there's some irony in the malformed '>' quotation notation I'm…
    comment by MaxBarraclough · 2022-03-12 · in The Art of Plain Text (2015)
  29. …in different parts of the code, for which you'd have to resort to writing fields manually. [1]: https://github.com/torvalds/linux/blob/719fce7539cd3e186598e...
    comment by dzaima · 2022-03-07 · in The Dirty Pipe Vulnerability
  30. …commit, the commit is correct, it only makes the bug exploitable. The buggy commit is older, it's https://github.com/torvalds/linux/commit/241699cd72a8489c944... but not exploitable. > I always try to shy away from making things look nicer…
    comment by max_k · 2022-03-07 · in The Dirty Pipe Vulnerability
  31. …deep rabbit hole. The commit message gave me the feeling that we should have just trust the author. https://github.com/torvalds/linux/commit/f6dd975583bd8ce0884...
    comment by dncornholio · 2022-03-07 · in The Dirty Pipe Vulnerability
  32. Practically, this is the struct you have to fill in if you don't use clone or fork. https://github.com/torvalds/linux/blob/719fce7539cd3e186598e... IMO clone looks a lot better than screwing with that giant struct and all of the kernel…
  33. …Dreamcast? (game console from 1998) Well there's a dreamcast_defconfig in the mainline kernel still https://github.com/torvalds/linux/blob/master/arch/sh/config... How about a Nintendo 64 from 1996? Someone sat down and hacked that out…
    comment by IntelMiner · 2022-02-28 · in The Life of Pi: Ten Years of Raspberry Pi
  34. …butcher those variables depending on liveness makes this feature seem less valuable, though. [0] https://github.com/torvalds/linux/blob/2729cfdcfa1cc49bef5a9...
    comment by jstimpfle · 2022-02-24 · in Moving the Linux Kernel to Modern C
  35. Are you catching the results? Probably a lot of people is trying https://github.com/torvalds/linux
  36. …meaning to "more stable". What makes userspace programs non-derived work is the syscall exception: https://github.com/torvalds/linux/blob/master/LICENSES/excep...
  37. Since I wanted to learn more about Linus Jitter Dance, here is the patch: https://github.com/torvalds/linux/commit/50ee7529ec45 And here is discussion of the concept: https://news.ycombinator.com/item?id=9512718
    comment by lixtra · 2022-02-17 · in Uniting the Linux random-number devices
  38. …what I'll be skimming through tonight ... [0]. Not short, but a lot more useful than guesswork. [0] https://github.com/torvalds/linux/blob/master/include/net/so...
    comment by roenxi · 2022-02-14 · in What does it mean to listen on a port?
  39. …IBM 2002 ... * "The futexes are also cursed." * "But they come in a choice of three flavours!" https://github.com/torvalds/linux/blob/master/kernel/futex/c...
    comment by RustyRussell · 2022-02-09 · in Landing a new syscall, part 1: What is futex?
  40. Yes, but some of the history has been omitted. [1] Line 1035 includes the signoff "-TYT, 12/1291" 1. https://github.com/torvalds/linux/commit/1da177e4c3f41524e88...
  41. …unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip! 0: https://github.com/torvalds/linux/commit/1da177e4c3f41524e88...
  42. …(and much of the code in that function, it seems) was from 17 years ago. See the git-blame: https://github.com/torvalds/linux/blame/f4bc5bbb5fef3cf421ba...
  43. You can link directly to a line by appending #<line_number> https://github.com/torvalds/linux/blob/f4bc5bbb5fef3cf421ba3...
  44. It's a touch nicer (IMO) if you link directly to the specific lines you're referring to, like: https://github.com/torvalds/linux/blob/f4bc5bbb5fef3cf421ba3...
  45. No out-of-tree drivers. 1. https://github.com/torvalds/linux/commit/6b99e3569ba17b9fd38... (2017) This changed the userspace hwmon API of the thinkpad-acpi driver from `/sys/devices/platform/thinkpad_hwmon/` to `/sys/class/hwmon/hwmon1/`,…
    comment by Arnavion · 2022-02-05 · in Handling argc==0 in the Linux kernel
  46. …below), and then look in the vendor sub-folders of the mainline linux Hardware compatibility list ( https://github.com/torvalds/linux/tree/master/arch/arm64/boo... /vendorname/) to look for the DTS of the ODM name of the board. Then you'll…
  47. …like Gobble Gobble / Trick of Treat etc, so i wouldn't assume its something to be taken seriously! https://github.com/torvalds/linux/blame/0280e3c58f92b2fe0e8f... https://github.com/torvalds/linux/blame/8ced7ca3570333998ad2...
    comment by EToS · 2022-01-27 · in I Am Satoshi
  48. The relevant line: https://github.com/torvalds/linux/blob/ac632c504d0b881d7cfb4...
    comment by jawns · 2022-01-27 · in I Am Satoshi
  49. …not belong to any branch on this repository, and may belong to a fork outside of the repository. https://github.com/torvalds/linux/commit/ac632c504d0b881d7cf... https://github.com/torvalds/linux/commits?author=torvalds This ability to (1)…
    comment by re · 2022-01-27 · in I Am Satoshi
  50. Seems it wasn't disabled in 2009 https://github.com/torvalds/linux/commit/a3ca86aea5079041488...