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
20082026
-
~64 KiB of stack ought to be enough for anybody. https://github.com/torvalds/linux/blob/84df9525b0c27f3ebc2eb...
comment by semiquaver · 2023-06-24 · in A large crash spike affecting Firefox users on Linux -
…look like they only accept a branch or commit OID but actually accept a revision specifier. So e.g https://github.com/torvalds/linux/tree/master@{yesterday} lets you peek into the reflog for the master branch on torvalds/linux. [1] man 7…
comment by semiquaver · 2023-06-23 · in About GitHub’s use of your data -
https://github.com/torvalds/linux/commit/8e86f0b409a44193f15... was the commit that fixed this IIRC
comment by saagarjha · 2023-06-19 · in A single line of code made a 24-core server slower than a laptop (2021) -
…still waits for enough entropy to collect in the pool before providing more data for consumption. https://github.com/torvalds/linux/blob/48b1320a674e1ff5de2fa... The "wait_for_random_bytes" function is still there:…
comment by cbsmith · 2023-05-31 · in Random Number Generator Recommendations for Applications -
I agree. You can also go to to github.com/torvalds/linux click on code -> Download zip and have the Linux Kernel. I’m not sure what having ChatGPT write it for you would give you. Maybe 10,000 hours of frustration after you realize how far…
comment by svaha1728 · 2023-05-30 · in How much would it have cost if GPT-4 had written your code -
…the CDN access to the docs and kernels. [2] The latest kernel is in the v6.x directory. [1] - https://github.com/torvalds/linux [2] - https://cdn.kernel.org/pub/linux/kernel/
comment by LinuxBender · 2023-05-22 · in Ask HN: I'd like to start reading the Linux source code. Where should I start? -
…uses a modified variant of alloc, so not only can it use sort_unstable, it also has access to sort https://github.com/torvalds/linux/blob/2d1bcbc6cd703e64caf8d...
comment by steveklabnik · 2023-05-19 · in FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITs -
…queue burn down when you have lots of pending writes. see: `LESS=+/meminfo man proc` or https://github.com/torvalds/linux/blob/master/Documentation/... for more info
comment by stack_underflow · 2023-05-19 · in Linux tool to show progress for cp, mv, dd -
…the remainder of dst is filled with ‘\0’ characters. and the fallback kernel implementation at https://github.com/torvalds/linux/blob/master/lib/string.c#L... does that. So 1) it does not stop when it sees a NUL - it keeps writing NULs…
comment by eesmith · 2023-05-12 · in Kernel String Overcopying -
…such an instance? The ZFS hair shirt is a self imposed by semi-religious Linux wackadoos. [0]: See, https://github.com/torvalds/linux/blob/master/LICENSES/excep...
comment by mustache_kimono · 2023-05-11 · in Bcachefs – A New COW Filesystem -
>Prove me wrong. Show me in their source code of the OS you're running that they don't do this. https://github.com/torvalds/linux https://gitlab.gnome.org/World/Phosh/phosh/
comment by Arnavion · 2023-04-18 · in PSA: Upgrade your LUKS key derivation function -
…seems to be some special mechanisms for x86, x86_64 and x86_32. The asm include for x86 is here: https://github.com/torvalds/linux/blob/master/arch/x86/inclu... It includes either unistd_32.h or unistd_64.h. Those headers don't seem to be…
comment by matheusmoreira · 2023-04-15 · in Searchable Linux Syscall Table for x86 and x86_64 -
That depends on your architecture, on x86_64 it's generated from this file: https://github.com/torvalds/linux/blob/master/arch/x86/entry...
comment by sickall · 2023-04-14 · in Searchable Linux Syscall Table for x86 and x86_64 -
…many times, thanks. The header file with the definitions that get exported to user space is here: https://github.com/torvalds/linux/blob/master/include/uapi/a...
comment by matheusmoreira · 2023-04-14 · in Searchable Linux Syscall Table for x86 and x86_64 -
…- see https://lwn.net/Articles/885729/ There's a whole heap of reasons a packet can be dropped: https://github.com/torvalds/linux/blob/76f598ba7d8e2bfb4855b... In any case, this makes it less painful than going back to read the kernel…
comment by bazzargh · 2023-04-05 · in Packet, where are you? – eBPF-based Linux kernel networking debugger -
And their patch was indeed merged: https://github.com/torvalds/linux/commit/027ac58e3c757277dd6...
comment by Arnavion · 2023-03-29 · in The strange case of ICMP Type 69 on Linux (2015) -
This was the patch that removed it: https://github.com/torvalds/linux/commit/f06021a18fcf8d8a1e7... But this commit message is burying the lede a bit. There are two problems here: 1) you can revert the change, but a large part of the…
comment by stefan_ · 2023-03-17 · in Linux Intel WiFi driver broken with 5&6GHz bands for longer than three years -
The Linux kernel still uses centralized exits in places, with goto to do cleanup. https://github.com/torvalds/linux/blob/master/Documentation/...
comment by deckard1 · 2023-03-17 · in My thoughts on “bad code” -
▲ 22
Linus Torvalds on Word-Wrapping Git Commit Messagesstory by stefankuehnel · 2023-03-08 · 9 comments
-
…notwithstanding, and there appears to be at least some support for this in the Linux kernel, https://github.com/torvalds/linux/blob/2eb29d59ddf02e39774ab...
comment by jasomill · 2023-03-03 · in FreeBSD Home Audio Studio -
Really stupid topic, but arguably this plays second fiddle to the kernel's main method: https://github.com/torvalds/linux/blob/v4.2/init/main.c#L497
comment by AA-BA-94-2A-56 · 2023-03-01 · in The single most powerful line in programming -
…target all platforms that the kernel supports. 1. https://docs.kernel.org/rust/index.html 2. https://github.com/torvalds/linux/tree/v6.2/rust
comment by jacoblambda · 2023-02-21 · in Linux 6.2: The first mainstream Linux kernel for Apple M1 chips arrives -
…but it isn't any worse. I can see that it's been supported for a long time in mainline Linux: https://github.com/torvalds/linux/blob/master/drivers/hid/hi...
comment by kccqzy · 2023-02-21 · in Linux 6.2: The first mainstream Linux kernel for Apple M1 chips arrives -
…profiling powered by eBPF technology." BPF stack traces are gathered using frame pointers: https://github.com/torvalds/linux/blob/master/kernel/bpf/sta... https://github.com/torvalds/linux/blob/master/arch/x86/event...
comment by irogers · 2023-02-15 · in Frame pointers vs. DWARF – my verdict -
…the drivers we contributed to the effort :) Their display controller driver was fun to figure out. https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
comment by Jasper_ · 2023-02-14 · in Turning a TV set-top box into a Linux computer (2022) -
…the stack (at least on x86, amd64). You don’t get argc/argv/envp but main will still work. [0] https://github.com/torvalds/linux/tree/master/tools/include/... [1] https://github.com/lpsantil/rt0/blob/master/src/lib/00_start...
comment by oso2k · 2023-02-05 · in A Linking Adventure -
…of dynamic code generated by a JIT. This is supported by at least the JVM, Node, and Python (3.12). https://github.com/torvalds/linux/blob/0513e464f9007b70b9674... https://www.brendangregg.com/Slides/KernelRecipes_Perf_Event... (pp. 53-58)…
comment by nemetroid · 2023-02-05 · in Fedora now has frame pointers -
…thing for NVMe devices (eg Samsung, SK Hynix, Micron, Kingston, ADATA, Intel, (etc) NVMe drives): https://github.com/torvalds/linux/blob/69f2c9346313ba3d3dfa4... Not quite as easy to read and understand as the ata driver code though. With…
comment by justinclift · 2023-02-04 · in Update on Samsung SSD Reliability -
…point, the Linux kernel has a long list of workarounds for "ata" related devices (SSDs, HDDs, etc): https://github.com/torvalds/linux/blob/69f2c9346313ba3d3dfa4... Can be a bit eye opening to look down that and see equipment you're using…
comment by justinclift · 2023-02-04 · in Update on Samsung SSD Reliability -
…to issue requests not included in that specification, and to have undocumented constraints. [3] [1] https://github.com/torvalds/linux/blob/master/drivers/net/us... [2] https://learn.microsoft.com/en-us/windows-hardware/drivers/n... [3]…
comment by rolph · 2023-01-10 · in Linux preparing to disable drivers for Microsoft’s RNDIS protocol -
Is it broken? I tried adding https://github.com/torvalds/linux and asking it to write a simple kernel module for me, but it gave me this error: "Something went wrong, please try again later. If the problem persists, please contact us."…
comment by feklest · 2023-01-05 · in Show HN: GPTDuck – Ask questions about any GitHub repo -
It seems that this has been the case for years, at least going from the (obviously logged-out) archive.org saves of the Linux repo: https://web.archive.org/web/20180115003453/https://github.co...
comment by legobmw99 · 2023-01-05 · in Bill Gates: I'm literally losing sleep over Java (1996) -
…turned out to be a racist or sexist or homosexist or transexist, would his Linux repository ( https://github.com/torvalds/linux ) be hammered? Would he be removed from the Linux project somehow?
comment by violini · 2023-01-05 · in Automatic1111's GitHub account suspended for "ToS violations" [restored] -
…and asm-generic headers. The Linux kernel headers with all relevant structure definitions are here: https://github.com/torvalds/linux/tree/master/include/uapi
comment by matheusmoreira · 2022-12-27 · in Experimental Rust Feature: Safer Interoperable ABI -
The source is published to GitHub though, no? https://github.com/torvalds/linux It's an easy mistake to make, the code is there and there's nothing to suggest it's a mirror.
comment by Philip-J-Fry · 2022-12-24 · in Second Life on GitHub -
The historical reason is https://github.com/torvalds/linux/pull/17#issuecomment-56546... Perhaps some of these issues have been fixed by now, but the Linux project has been going on just fine without GitHub (git was even invented for the…
comment by ithkuil · 2022-12-24 · in Second Life on GitHub -
…it will get truncated to the "TASK_COMM_LEN" that proc(5) discusses. See this code in kernel/sys.c: https://github.com/torvalds/linux/blob/493ffd6605b2d3d4dc700... This is the linux.git commit that changed it, before that kernel worker…
comment by avar · 2022-12-23 · in Linux /proc/pid/stat parsing bugs -
They actually allow up to 64 characters in the kernel: https://github.com/torvalds/linux/blob/8395ae05cb5a2e31d3610... This might just be for certain kernel things though. I don't see any regular processes that aren't truncated, but I see…
comment by jyxent · 2022-12-22 · in Linux /proc/pid/stat parsing bugs -
…`list` type that's used ~everywhere in the kernel didn't have any in-repo unit tests until 2019 ( https://github.com/torvalds/linux/commit/ea2dd7c0875ed31955c... ), after kunit, a library for userspace testing of kernel code, was added.
comment by slongfield · 2022-12-22 · in Linux's strcmp() for the m68k has always been broken -
https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...
comment by jeffbee · 2022-12-22 · in All 1,400 Google Chrome CLI flags -
…in gflags since 2007 at the latest, and 2007 is also when the command line length limit was lifted: https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...
comment by jeffbee · 2022-12-22 · in All 1,400 Google Chrome CLI flags -
…but it is at least a nice list in a plain text file — intel-family.h from the Linux source tree: https://github.com/torvalds/linux/blob/master/arch/x86/inclu...
comment by gorgoiler · 2022-12-19 · in Was Rocket Lake Power Efficient? -
https://sourcegraph.com/github.com/torvalds/linux is a more featured search engine with limited go-to-definition functionality, and removes the need to clone locally and search in many cases. Can be used with any GitHub repo. Just make…
comment by Arnavion · 2022-12-17 · in A Linux Evening -
Kernel parameters are usually documented in the kernel-parameters.txt file in the source. See https://github.com/torvalds/linux/blob/master/Documentation/... : hpbussize=nn The minimum amount of additional bus numbers reserved for buses…
comment by jeromenerf · 2022-12-16 · in A Linux Evening -
That makes sense, so I just picked another commit at random without a -rc tag: https://github.com/torvalds/linux/commit/c60c152230828825c06... The fix is to change && to || This seems like the exact type of bug that a unit test could…
comment by thunky · 2022-11-25 · in Ask HN: Why the Linux Kernel doesn't have unit tests? -
> ... there are a bunch of internal APIs: linked lists come to mind. Those already have unit tests: https://github.com/torvalds/linux/blob/master/lib/list-test.... using an existing in-kernel test framework no less. If you step up into the…
comment by st_goliath · 2022-11-25 · in Ask HN: Why the Linux Kernel doesn't have unit tests? -
…Maybe that's why the most recent commit as of right now is loaded with fixes of broken things: https://github.com/torvalds/linux/commit/08ad43d554bacb9769c... It's one thing to say that it's impossible to test effectively locally before…
comment by thunky · 2022-11-25 · in Ask HN: Why the Linux Kernel doesn't have unit tests? -
…on top of that such as Slab/Slub, jcmalloc, tcmalloc, mimalloc, etc. but you got the point). [1] https://github.com/torvalds/linux/blob/c3eb11fbb826879be773c...
comment by afr0ck · 2022-11-24 · in How can you not be romantic about programming? (2020) -
The kernel definitely sets the WIMG bits at https://github.com/torvalds/linux/blob/master/arch/powerpc/m... (line 336, if HN removes it), though I've never been able to "make it work" either. I used box64 as a test case, where I had a game…
comment by spijdar · 2022-11-10 · in Why is Rosetta 2 fast? -
…required compiler-specific macros like GCC's __builtin_expect, which is used all over the kernel: https://github.com/torvalds/linux/search?q=__builtin_expect
comment by mikepurvis · 2022-11-10 · in Why is Rosetta 2 fast?