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 linux kernel also has some nice comments in its red black tree implementation. https://github.com/torvalds/linux/blob/master/lib/rbtree.c
comment by keeperofdakeys · 2021-04-09 · in Tree.h in OpenBSD: dependency-free intrusive binary tree (2002) -
…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 -
…yet. https://github.com/intel/compute-runtime https://github.com/intel/intel-graphics-compiler https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
comment by elihu · 2021-03-27 · in Intel's Ponte Vecchio Xe-HPC GPU Boasts 100B Transistors -
…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]…
comment by NovaX · 2021-03-14 · in Multigenerational LRU: more performant, versatile, straightforward than Linux's -
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 -
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…
comment by gsg · 2021-03-12 · in Drop millions of allocations by using a linked list (2015) -
▲ 1
Linux/Jiffies.hstory by harporoeder · 2021-03-11 · 0 comments
-
…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) -
…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…
comment by geofft · 2021-03-10 · in Git: Malicious repositories can execute remote code while cloning -
Looks like it's still there: https://github.com/torvalds/linux/blob/master/fs/ext4/resize...
comment by lgregg · 2021-03-09 · in `three = 1` in the Linux sourcecode (2014) -
▲ 2
Linux source code __to_inorder function documentationstory by fmax30 · 2021-03-09 · 1 comment
-
No changes: https://github.com/torvalds/linux/blob/master/fs/ext4/resize...
comment by aaossa · 2021-03-09 · in `three = 1` in the Linux sourcecode (2014) -
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…
comment by ronyeh · 2021-03-09 · in `three = 1` in the Linux sourcecode (2014) -
Explanatory comment: https://github.com/torvalds/linux/blob/d158fc7f36a25e19791d2...
comment by olarva · 2021-03-09 · in `three = 1` in the Linux sourcecode (2014) -
▲ 239
`three = 1` in the Linux sourcecode (2014)story by ddtaylor · 2021-03-09 · 101 comments
-
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) -
▲ 43
Linus and Pull Requests (2012)story by submagr · 2021-03-06 · 70 comments
-
…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 -
…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 -
…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 -
…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 -
No. As someone else mentioned, the kernel hardcodes /bin/sh as a last resort: https://github.com/torvalds/linux/blob/dcc0b49040c70ad827a7f...
comment by fao_ · 2021-02-12 · in How Fat Does a Fat Binary Need to Be? -
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? -
…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 -
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.
comment by my123 · 2021-01-14 · in macOS Big Sur 11.2 beta 2 adds full custom kernel support -
…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
comment by wzdd · 2021-01-13 · in Using GPT-3 for plain language incident root cause from logs -
…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
comment by tyingq · 2021-01-11 · in iPhone 7 with dead NAND netbooting unmodified Ubuntu 20.04 via USB ethernet -
▲ 3
Linux Kernel Coding Stylestory by susam · 2020-12-28 · 0 comments
-
…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) -
▲ 3
Entire Linux Source Code Development History Visualizedstory by pro_metheu5 · 2020-12-21 · 2 comments
-
…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 -
LGTM https://github.com/torvalds/linux/pull/684
comment by kitaisreal · 2020-12-09 · in Everything You Always Wanted to Know About GitHub (But Were Afraid to Ask) -
The actual code in the kernel is well documented (and different, lines 103-149): https://github.com/torvalds/linux/blob/master/include/linux/...
comment by ggrrhh_ta · 2020-12-07 · in Linus Torvalds' good taste argument for linked lists, explained -
…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) -
…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 -
…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 -
…make these definitions small ; the feature set of a modern GPU really is massively complex. [1] https://github.com/torvalds/linux/blob/c84e1efae022071a4fcf9...
comment by 0xcde4c3db · 2020-11-28 · in Linus Torvalds doubts Linux will get ported to Apple M1 hardware -
…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…
comment by dmitris · 2020-11-20 · in My First Kernel Module: A Debugging Nightmare -
…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 -
…issue page and PRs receive a polite comment on how to send their PRs as patches outside of github. https://github.com/torvalds/linux
comment by fabianhjr · 2020-11-15 · in Open Source does not mean “Includes Free Support” -
…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…
comment by fulafel · 2020-11-06 · in A Linux sysadmin's introduction to cgroups -
…of concept on the linux kernel repo [2]. [1] https://news.ycombinator.com/item?id=24976138 [2] https://github.com/torvalds/linux/tree/5895e21f3c744ed9829e3...
comment by EricLemieux · 2020-11-04 · in GitHub source code in DMCA repo pushed by GitHub CEO -
…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 -
…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 -
▲ 3
How to Become a Linux Maintainerstory by pickleMeTimbers · 2020-10-19 · 0 comments
-
…this: https://news.ycombinator.com/item?id=14533398 And the relevant doc in the kernel source: https://github.com/torvalds/linux/blob/master/Documentation/...
comment by l3s2d · 2020-10-11 · in The AMD Radeon Graphics Driver Makes Up Roughly 10.5% of the Linux Kernel -
…`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.…
comment by slezyr · 2020-10-05 · in Nvidia announces Jetson Nano 2GB, a single board computer -
…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…
comment by woodrowbarlow · 2020-10-01 · in Hi, I'm shitoberfest. Tag me with hacktoberfest vandalism -
How about improving compilation time thousand-folds: https://github.com/torvalds/linux/pull/447
comment by zerd · 2020-09-30 · in DigitalOcean's Hacktoberfest Is Hurting Open Source