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
-
…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? -
It is still there: https://github.com/torvalds/linux/tree/master/arch/um
comment by mcculley · 2022-11-09 · in What chroot taught me about containers -
…Sept 18. Userspace fix: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests... Kernel fix: https://github.com/torvalds/linux/commit/26b1d3b527e7 I'm unclear on why this is being sold as "no one maintains X11" and not "the kernel…
comment by gpm · 2022-11-07 · in Linux Kernel Has Been Forcing Different Behavior for Processes Starting with “X” -
…I saw there is at least one example of commentary to go along with a struct: https://sourcegraph.com/github.com/torvalds/linux/-/blob/dri...
comment by mdaniel · 2022-11-04 · in Testing Microsoft's Windows Dev Kit 2023 -
…communication breakthroughs and controls, Deep Space Networking needs a new TCP, as well: From https://github.com/torvalds/linux/blob/master/net/ipv4/tcp_t... : void tcp_retransmit_timer(struct sock *sk) { /* Increase the timeout each time…
comment by westurner · 2022-11-01 · in We need a replacement for TCP in the datacenter [pdf] -
…in the instructions for the Surface. Support for the Qualcomm chip did land in v6.0 of the Kernel - https://github.com/torvalds/linux/commit/b6a6535b339776d32fa... I just had mine arrive today, which I wanted to enroll as an ARM64 build…
comment by alexellisuk · 2022-10-27 · in Available Today: Windows Dev Kit 2023 a.k.a. Project Volterra -
https://github.com/torvalds/linux/blob/d47136c2801540e80f41e...
comment by nathants · 2022-10-23 · in Linux: What Can You Epoll? -
…your linux kernel patch accepted by emailing it to the responsible maintainer, it will end up on https://github.com/torvalds/linux . But you never agreed to the Github ToS, all you did was agree to publish it under the GPLv2. Linus agreed…
comment by wongarsu · 2022-10-17 · in GitHub Copilot investigation -
…( https://news.ycombinator.com/item?id=8434128 , https://www.cs.earlham.edu/~dusko/cs63/fdiv.html , https://github.com/torvalds/linux/blob/v5.9/arch/x86/kernel/... ) and so on
comment by tomrod · 2022-10-14 · in A modern Fortran scientific programming ecosystem -
> The official repo is under his personal account at github.com/torvalds/linux I think you mean https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
comment by account42 · 2022-10-11 · in Blender: Wayland Support on Linux -
…of contributing to his kernel, his trademark, for free? The official repo is under his personal account at github.com/torvalds/linux And regular for profit companies aren't incompatible with Linux. Canonical, Red Hat, etc. make billions…
comment by sph · 2022-10-11 · in Blender: Wayland Support on Linux -
> Is NILFS not part of the kernel mainline, I guess? Good guess, but no: https://github.com/torvalds/linux/tree/master/fs/nilfs2 > How did Linus not go on a rampage after breaking userspace for an entire year? I would very much like to…
comment by yjftsjthsd-h · 2022-10-11 · in Linux NILFS file system: automatic continuous snapshots -
…unlike kpatch. It's the same. For example https://ubuntu.com/security/livepatch/docs/faq links to https://github.com/torvalds/linux/blob/master/Documentation/... .
comment by rlpb · 2022-10-06 · in Ubuntu Pro -
…structure code in Linux I really liked and thought it was the best implementation I have seeen: https://github.com/torvalds/linux/blob/master/include/linux/...
comment by badrabbit · 2022-08-30 · in Ask HN: What's a small example of some of the best code ever written? -
…A few examples of projects with better commit messages: Linux kernel: https://github.com/torvalds/linux/commits/master gcc: https://github.com/gcc-mirror/gcc/commits/master Perl: https://github.com/Perl/perl5/commits/blead Wayla
comment by greaterthan3 · 2022-08-28 · in I like Odin -
…found out the Linux kernel itself has a superior nolibc library that they use for their own tools: https://github.com/torvalds/linux/tree/master/tools/include/... It used to be a single header but it looks like they've recently organized…
comment by matheusmoreira · 2022-08-16 · in Win32 Is the Only Stable ABI on Linux? -
…developing it anymore though because I found out the kernel itself has a superior nolibc library: https://github.com/torvalds/linux/tree/master/tools/include/... It used to be a single header but it looks like they've recently organized it…
comment by matheusmoreira · 2022-08-15 · in Oasis: Small statically-linked Linux system -
…doesn’t scale; What about these projects? https://github.com/redis/redis/blob/unstable/src/Makefile https://github.com/torvalds/linux/blob/master/Makefile
comment by sjaak · 2022-08-01 · in A Tutorial on Portable Makefiles (2017) -
…blindly assumed was because the kernel had entered an infinite loop. This turns out to be the case: https://github.com/torvalds/linux/blob/cbe232ab07ab7a1c7743c... There are references to interacting with kgdb, booting a crash kernel, and…
comment by exikyut · 2022-07-25 · in Ask HN: What are the best programming tricks you know? -
The commit references this in the "Fixes" tag: https://github.com/torvalds/linux/commit/7d7402642eaf385aef0... That's a commit from 2015
comment by megous · 2022-07-21 · in A Crack in the Linux Firewall -
…either uses a separate file written in assembly (.S file) or inline assembly that GCC understands. https://github.com/torvalds/linux/blob/ce990f1de0bc6ff3de43d... https://github.com/torvalds/linux/blob/35e43538af8fd2cb39d58...
comment by deckard1 · 2022-07-18 · in Does a compiler use all x86 instructions? (2016) -
…developers can use either. The sample code is mostly just lifted from other places (such as https://github.com/torvalds/linux/blob/master/samples/vfio-m ...), so useless you're better off reading the source (…
comment by ArcVRArthur · 2022-07-06 · in GVM: A GPU Virtual Machine for IOMMU-Capable Computers -
…developers can use either. The sample code is mostly just lifted from other places (such as https://github.com/torvalds/linux/blob/master/samples/vfio-m... ), so useless you're better off reading the source (…
comment by evol262 · 2022-07-06 · in GVM: A GPU Virtual Machine for IOMMU-Capable Computers -
…like linux that don't accept PRs on github and swear on sending patches. Obligatory Linus Rant: https://github.com/torvalds/linux/pull/17#issuecomment-56546...
comment by Anunayj · 2022-07-02 · in Kyoto project is moving from GitHub to Sourcehut -
Roll up! Roll up! Decode your Intel model/"stepping" (model/version) into a precise SKU name here: https://github.com/torvalds/linux/blob/master/arch/x86/inclu... No, I do not know why every single ICELAKE processor is commented as Sunny…
comment by gorgoiler · 2022-06-27 · in Linux commands for advanced hardware and system info -
…[3]. How come that the licensing in such a way is possible with the Linux licensing rules? [1] https://github.com/torvalds/linux/blob/master/Documentation/... [2] https://github.com/Rust-for-Linux/linux/blob/rust/rust/alloc... [3]…
comment by jokabrink · 2022-06-27 · in Memory safety for the world’s largest software project