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 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) -
…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 -
The Linux kernel uses chained hash tables in many places. https://github.com/torvalds/linux/blob/master/include/linux/...
comment by jlokier · 2022-06-20 · in Advancing the state of the art for std:unordered_map implementations -
…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...
comment by jvolkman · 2022-06-10 · in Important PostgreSQL 14 update to avoid silent corruption of indexes -
…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() -
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 -
…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...
comment by brancz · 2022-05-17 · in Wazero: The zero dependency WebAssembly runtime for Go developers -
…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/...
comment by isogon · 2022-05-02 · in The $440M software error at Knight Capital (2019) -
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? -
…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…
comment by faho · 2022-04-29 · in Git.io deprecation: Active links to be maintained in a read-only state -
I'd rather use a tag, e.g. https://github.com/torvalds/linux/blob/v5.18-rc4/kernel/dma/...
comment by CodesInChaos · 2022-04-29 · in Git.io deprecation: Active links to be maintained in a read-only state -
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…
comment by bhaak · 2022-04-29 · in Git.io deprecation: Active links to be maintained in a read-only state -
…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…
comment by gotaquestion · 2022-04-25 · in C++20 Ranges Algorithms – Non-Modifying Operations -
…(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...
comment by tbr1 · 2022-04-22 · in Magic-trace – High-resolution traces of what a process is doing -
…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...
comment by sascha_sl · 2022-04-18 · in Ask HN: MacBooks seems to be the only viable option these days -
…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 -
…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?
comment by AdamJacobMuller · 2022-04-16 · in Moreutils: A collection of Unix tools that nobody thought to write long ago -
…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 -
…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 -
…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 -
…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…
comment by knorker · 2022-03-25 · in Writing a simple operating system from scratch (2010) [pdf] -
…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…
comment by knorker · 2022-03-25 · in Writing a simple operating system from scratch (2010) [pdf] -
…example, the same mechanism got adapted to Chromebooks+Coreboot and now uses that same driver here: https://github.com/torvalds/linux/commit/d384d6f43d1ec3f1225...
comment by b-rian · 2022-03-22 · in Lanai, the mystery CPU architecture in LLVM -
…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…
comment by duskwuff · 2022-03-21 · in Lanai, the mystery CPU architecture in LLVM -
…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 -
…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 -
…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) -
…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 -
…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 -
…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 -
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…
comment by monocasa · 2022-03-01 · in Fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid -
…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 -
…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 -
Are you catching the results? Probably a lot of people is trying https://github.com/torvalds/linux
comment by gus_massa · 2022-02-24 · in Show HN: I built a website that shows you active GitHub forks -
…meaning to "more stable". What makes userspace programs non-derived work is the syscall exception: https://github.com/torvalds/linux/blob/master/LICENSES/excep...
comment by meinersbur · 2022-02-20 · in Linux's GPLv2 licence is routinely violated (2015) -
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 -
…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? -
…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? -
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...
comment by gryfft · 2022-02-09 · in This needs some heavy checking... (line 1029) -
…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...
comment by pfarrell · 2022-02-09 · in This needs some heavy checking... (line 1029) -
…(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...
comment by sli · 2022-02-09 · in This needs some heavy checking... (line 1029) -
You can link directly to a line by appending #<line_number> https://github.com/torvalds/linux/blob/f4bc5bbb5fef3cf421ba3...
comment by codingkev · 2022-02-09 · in This needs some heavy checking... (line 1029) -
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...
comment by jfk13 · 2022-02-09 · in This needs some heavy checking... (line 1029) -
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 -
…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…
comment by stragies · 2022-02-01 · in It's dire: Raspberry Pi availability tracker -
…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 -
The relevant line: https://github.com/torvalds/linux/blob/ac632c504d0b881d7cfb4...
comment by jawns · 2022-01-27 · in I Am Satoshi -
…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 -
Seems it wasn't disabled in 2009 https://github.com/torvalds/linux/commit/a3ca86aea5079041488...
comment by mzs · 2022-01-21 · in ISO C became unusable for operating systems development