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 linux kernel also has some nice comments in its red black tree implementation. https://github.com/torvalds/linux/blob/master/lib/rbtree.c
  2. …and in the module make the system call with proper library call. like in the following code: https://github.com/torvalds/linux/blob/master/samples/vfs/te... This way it will be portable! A couple of weeks ago, I just made for our OS's…
    comment by andy_threos_io · 2021-03-29 · in A statx(2) Linux system Python wrapper
  3. …yet. https://github.com/intel/compute-runtime https://github.com/intel/intel-graphics-compiler https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
  4. …It is well written but very confusing code that seems scattered if not a kernel developer. [1] https://github.com/torvalds/linux/blob/master/mm/workingset.... [2] https://github.com/torvalds/linux/blob/1590a2e1c681b0991bd42... [3]…
  5. Linux has the CREDITS file where you end up once you drop out of maintainership of some subsystem: https://github.com/torvalds/linux/blob/master/CREDITS (e.g. https://github.com/torvalds/linux/commit/054c4610bd05 )
    comment by stefan_ · 2021-03-13 · in Dhcpcd Will Need a New Maintainer
  6. You can easily see by searching for 'kmalloc' (or 'malloc') at https://github.com/torvalds/linux/blob/master/include/linux/... that it does no such thing. Here's the logic for adding a list node: /* * Insert a new entry between two known…
  7. ▲ 1
    Linux/Jiffies.h
    story by harporoeder · 2021-03-11 · 0 comments
  8. …used for more than those two situations. Maybe just cruft...? Search for retry: or handle_itb: in https://github.com/torvalds/linux/blob/master/fs/ext4/resize... Or fixleft: or copy: in https://github.com/torvalds/linux/blob/d158fc7f36a25e1…
    comment by robocat · 2021-03-10 · in Decoded: GNU coreutils (2019)
  9. …that get installed to /usr/include/linux/netfilter have conflicts on a case-insensitive filesystem. https://github.com/torvalds/linux/tree/master/include/uapi/l... Debhelper used to be one of those until I convinced them to change it: they…
  10. Looks like it's still there: https://github.com/torvalds/linux/blob/master/fs/ext4/resize...
  11. ▲ 2
    Linux source code __to_inorder function documentation
    story by fmax30 · 2021-03-09 · 1 comment
  12. No changes: https://github.com/torvalds/linux/blob/master/fs/ext4/resize...
  13. I see a problem: https://github.com/torvalds/linux/blob/master/fs/ext4/resize... Upon a quick code review, these lines look buggy: unsigned three = 1; unsigned five = 5; unsigned seven = 7; Without digging deeper, the reader of this code…
  14. Explanatory comment: https://github.com/torvalds/linux/blob/d158fc7f36a25e19791d2...
  15. ▲ 239
    `three = 1` in the Linux sourcecode (2014)
    story by ddtaylor · 2021-03-09 · 101 comments
  16. He does not, look at the graveyard that is https://github.com/torvalds/linux/pulls?q=is%3Apr+is%3Aclose... The Linux kernel uses a development process that is very disjoint from common contemporary open-source practice, and easy to get…
    comment by ben0x539 · 2021-03-06 · in Linus and Pull Requests (2012)
  17. ▲ 43
    Linus and Pull Requests (2012)
    story by submagr · 2021-03-06 · 70 comments
  18. …a few lines earlier in the bdev_write_page() fast path, as introduced by this commit from 2014: https://github.com/torvalds/linux/commit/dd6bd0d9c7dbb395100... So either: 1. The bdev_write_page() call was also broken, and has been for…
    comment by N48 · 2021-03-05 · in A warning about 5.12-rc1
  19. …IDs, so you have to go looking yourself. I believe this is the commit which introduces the bug: https://github.com/torvalds/linux/commit/48d15436fde6feebcde... And I believe this is the commit which fixes it:…
    comment by skissane · 2021-03-05 · in A warning about 5.12-rc1
  20. …dynamically typed language VM? Here: https://github.com/v8/v8 Build an operating system? OK: https://github.com/torvalds/linux Build a database? Here you go: https://github.com/postgres/postgres
    comment by munificent · 2021-03-04 · in Flutter 2
  21. …working on it because I found better solution for system calls on the Linux kernel repository: https://github.com/torvalds/linux/blob/master/tools/include/... Do you think liblinux could have a future?
    comment by matheusmoreira · 2021-03-01 · in Actually Portable Executables
  22. …tarballs and cloning git repos: https://github.com/ohmyzsh/ohmyzsh/pull/2029 Example: take https://github.com/torvalds/linux.git # you're now in the cloned directory
    comment by mgalgs · 2021-02-27 · in Zsh Tricks to Blow Your Mind
  23. No. As someone else mentioned, the kernel hardcodes /bin/sh as a last resort: https://github.com/torvalds/linux/blob/dcc0b49040c70ad827a7f...
  24. It does, however, hardcode /bin/sh as a init of last resort: https://github.com/torvalds/linux/blob/dcc0b49040c70ad827a7f...
    comment by saagarjha · 2021-02-12 · in How Fat Does a Fat Binary Need to Be?
  25. …contributions. So that your change can become part of Linux, please email it to us as a patch. [0] https://github.com/torvalds/linux/pull/805#issuecomment-5933...
    comment by pengaru · 2021-02-09 · in SDL Moves to GitHub
  26. AFAIK it got merged a while back: https://github.com/torvalds/linux/commit/66341331ba0d2de4ff4... (for Linux 5.4) It isn't even a big patch.
  27. …account of any single version of fast-changing parts of the kernel like the OOM killer. Source: https://github.com/torvalds/linux/blob/master/mm/oom_kill.c
  28. …file for the architecture. For example, PAGE_SHIFT is 13 for OpenRisc: https://github.com/torvalds/linux/blob/fcadab740480e0e0e9fa9... A quick way to convert that to the page size: $ echo "2^13" | bc 8192
  29. ▲ 3
    Linux Kernel Coding Style
    story by susam · 2020-12-28 · 0 comments
  30. …with a STM32 of some kind. You can run Linux directly on some STM32 MCUs. No emulation required! https://github.com/torvalds/linux/tree/master/arch/arm/mach-... That being said, static operation is really less of an issue than you're…
    comment by duskwuff · 2020-12-22 · in Linux on an 8-Bit Micro? (2012)
  31. ▲ 3
    Entire Linux Source Code Development History Visualized
    story by pro_metheu5 · 2020-12-21 · 2 comments
  32. …This is common in the Linux kernel. A great example is this function I found at random from fork.c: https://github.com/torvalds/linux/blob/master/kernel/fork.c#... Notice that there are five different goto targets, each for a specific case…
    comment by scott_s · 2020-12-14 · in A Defer Mechanism for C
  33. LGTM https://github.com/torvalds/linux/pull/684
  34. The actual code in the kernel is well documented (and different, lines 103-149): https://github.com/torvalds/linux/blob/master/include/linux/...
  35. …2. A better way might be to look at the linux source code directly (choose the right architecture): https://github.com/torvalds/linux/blob/master/arch/x86/entry...
    comment by djeiasbsbo · 2020-12-05 · in Reading Manpages Like a Pro (2018)
  36. …a somewhat unpleasant experience. It feels like the code lacks enunciation. As if it mumbles. [1] https://github.com/torvalds/linux/blob/master/Documentation/...
    comment by huhtenberg · 2020-11-30 · in I am an 80 column purist
  37. …makes CPU limits for containers extra costly? https://github.com/kubernetes/kubernetes/issues/67577 https://github.com/torvalds/linux/commit/512ac999d2755d2b710... If I recall correctly you need 4.18+ to get the fix.
    comment by tbrock · 2020-11-29 · in A better Kubernetes from the ground up
  38. …make these definitions small ; the feature set of a modern GPU really is massively complex. [1] https://github.com/torvalds/linux/blob/c84e1efae022071a4fcf9...
  39. …https://blogs.oracle.com/linux/notes-on-bpf-7 has the links at the bottom) and from the Linux source, https://github.com/torvalds/linux/blob/master/include/uapi/l... . https://docs.cilium.io/en/latest/bpf/ is an extensive reference but…
  40. …s://www.kernel.org/doc/html/latest/scheduler/sched-desig... Check out the code here, if you're brave: https://github.com/torvalds/linux/blob/master/kernel/sched/f...
    comment by TimTheTinker · 2020-11-19 · in Windows Subsystem for Linux: The lost potential
  41. …issue page and PRs receive a polite comment on how to send their PRs as patches outside of github. https://github.com/torvalds/linux
  42. …file from the patch index mail linked above, mm_inline.h, and went scrolling through its history at https://github.com/torvalds/linux/commits/master/include/lin... but didn't see a corresponding change there. I guess the patches might have…
  43. …of concept on the linux kernel repo [2]. [1] https://news.ycombinator.com/item?id=24976138 [2] https://github.com/torvalds/linux/tree/5895e21f3c744ed9829e3...
  44. …console (fbcon). It is partially done, but the remaining work requires "large amount of code". https://github.com/torvalds/linux/commit/cec5b2a97a11ade56a7...
    comment by blitblitblit · 2020-10-25 · in imgcat: higher resolution
  45. …author[2] then linking people to their repo with the commit tree showing the illegal content. 0: https://github.com/torvalds/linux/pull/437 1: https://github.com/torvalds/linux/blob/2793ae1df012c7c3f13ea... 2:…
    comment by judge2020 · 2020-10-25 · in YouTube-dl is now part of GitHub/dmca.git
  46. ▲ 3
    How to Become a Linux Maintainer
    story by pickleMeTimbers · 2020-10-19 · 0 comments
  47. …this: https://news.ycombinator.com/item?id=14533398 And the relevant doc in the kernel source: https://github.com/torvalds/linux/blob/master/Documentation/...
  48. …`dts` stuff. The `dts` comes with the kernel sources. https://wiki.radxa.com/Rock/Linux_Mainline https://github.com/torvalds/linux/blob/master/arch/arm/boot/... 6.) Copy the zImage, rk3188-radxarock.dts to the /boot and plug in the UART.…
  49. …a good (but unnecessarily vitriolic) explanation for why he only uses github as a read-only mirror. https://github.com/torvalds/linux/pull/17#issuecomment-56599... basically: he has high expectations for the raw text formatting of a commit…
  50. How about improving compilation time thousand-folds: https://github.com/torvalds/linux/pull/447