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
-
…if you need more than 3 levels of indentation, you're screwed anyway, and should fix your program." https://github.com/torvalds/linux/blob/master/Documentation/...
comment by JacKTrocinskI · 2019-07-08 · in Nobody talks about the real reason to use Tabs over Spaces -
…on Linux you are expected to recompile drivers for every new kernel version, that's intentional ( https://github.com/torvalds/linux/blob/master/Documentation/... ). Since the driver API is reasonably stable, the code doesn't need to be…
comment by filmor · 2019-06-29 · in Microsoft's Linux Kernel -
Same for the official linux source https://github.com/torvalds/linux
comment by judge2020 · 2019-06-29 · in Microsoft's Linux Kernel -
Linux doesn't have a stable driver ABI: https://github.com/torvalds/linux/blob/master/Documentation/...
comment by muricula · 2019-06-28 · in Red Hat Expecting X.org to “Go into Hard Maintenance Mode Fairly Quickly” -
Linux has an explicit exception in its license so that user space software doesn’t fall under GPL. https://github.com/torvalds/linux/blob/master/LICENSES/excep... > NOTE! This copyright does not cover user programs that use kernel services…
comment by javagram · 2019-06-09 · in Blender Is Free Software -
…and this is likely due to the clearly declared syscall exception as noted in their licensing docs: https://github.com/torvalds/linux/blob/master/Documentation/... And, Torvalds commented on never-GPLv3 in 2006:…
comment by floatingatoll · 2019-06-05 · in Apple makes zsh default shell on macOS -
…document. Basically, don't use volatile. Here, with your choice of formatting: https://github.com/torvalds/linux/blob/master/Documentation/... https://www.mjmwired.net/kernel/Documentation/volatile-consi... https://www.kernel.org/doc/htm
comment by burfog · 2019-05-26 · in Ways to break your systems code using volatile (2010) -
…that the problem was introduced exactly then, but it does show that it's relatively recent code. https://github.com/torvalds/linux/commit/467fa15356acfb7b2ef...
comment by avian · 2019-05-14 · in Linux Kernel Prior to 5.0.8 Vulnerable to Remote Code Execution -
…Linus moved away from mailing lists some time ago. But then I'm not involved in kernel hacking. [1] https://github.com/torvalds/linux/pulls
comment by lixtra · 2019-05-14 · in Oh shit, git (2016) -
This is part of the reason why the Linux kernel doesn’t have a stable API. Quote from https://github.com/torvalds/linux/blob/master/Documentation/... : > Depending on the version of the C compiler you use, different kernel data structures…
comment by winter_blue · 2019-05-07 · in How C array sizes become part of the binary interface of a library -
…implemention used in git-request-pull instead. [1] https://git-scm.com/docs/git-request-pull [2] https://github.com/torvalds/linux/pull/17#issuecomment-56546...
comment by u801e · 2019-04-20 · in Commit messages guide -
…on the recipient's display to do it for them. Linus Torvalds describes the same issue here [1]. [1] https://github.com/torvalds/linux/pull/17#issuecomment-56606... .
comment by u801e · 2019-04-20 · in Commit messages guide -
Yep, Linus has been quite vocal about his distaste for GitHub pull requests. https://github.com/torvalds/linux/pull/17#issuecomment-56546...
comment by vimslayer · 2019-03-30 · in TypeScript 3.4 -
…return i+1 } does two things, and it's two lines long. The function tcp_send_message_locked ( https://github.com/torvalds/linux/blob/master/net/ipv4/tcp.c... ) does one thing at it's 261 lines long. Shorter code is _indicative of_…
comment by zbobet2012 · 2019-02-21 · in Practical Go: Real-world advice for writing maintainable Go programs -
…in 4.20.11, I can confirm that the fix is NOT in there. It's trivial to apply yourself, though from https://github.com/torvalds/linux/commit/9060cb719e61b685ec0... curl https://github.com/torvalds/linux/commit/9060cb719e61b685ec0102574e1033…
comment by kelnos · 2019-02-20 · in Linux Kernel Through 4.20.10 Found Vulnerable to Arbitrary Code Execution -
Looks like this is the fix: https://github.com/torvalds/linux/commit/9060cb719e61b685ec0...
comment by ptrincr · 2019-02-20 · in Linux Kernel Through 4.20.10 Found Vulnerable to Arbitrary Code Execution -
…a serial-based RF link. It's really weird to see code in the slip.c file that's older than I am: https://github.com/torvalds/linux/blame/master/drivers/net/s... .
comment by morpheuskafka · 2019-02-12 · in Build your own dial-up ISP in 2019 -
No? https://github.com/torvalds/linux/blob/master/drivers/gpu/dr... and all the other files in the folder are by AMD.
comment by striking · 2019-02-10 · in Wayland misconceptions debunked -
…has a fully upstreamed Linux kernel driver and a fully upstreamed Mesa userland graphics driver. https://github.com/torvalds/linux/tree/master/drivers/gpu/dr... https://gitlab.freedesktop.org/mesa/mesa/tree/master/src/gal... This isn't…
comment by stefan_ · 2019-02-07 · in Raspberry Pi Opens First High Street Store in Cambridge -
…infringement, and (possibly) the special exception for userspace in Linux's copyright statement, https://github.com/torvalds/linux/blob/master/LICENSES/excep... , is the only thing that makes normal userspace processes non-infringing, and…
comment by geofft · 2019-01-25 · in Oracle v. Google and the future of software development -
…GitHub’s mirror of the Linux kernel [2]. [1] https://mybinder.org/v2/gh/torvalds/linux/master [2] https://github.com/torvalds/linux
comment by guessmyname · 2019-01-22 · in Binder – Turn a Git repo into a collection of interactive notebooks -
…As for RAM encryption, Linux already supports it, if you're using a very new AMD CPU with SME: https://github.com/torvalds/linux/blob/master/Documentation/...
comment by icebraining · 2019-01-21 · in Intro to hacking MicroSD cards (2013) -
Am I reading correctly that Linux only has <300 commits per day? (<100K per year, 800K in histoy) https://github.com/torvalds/linux/commits/master?after=3bd6e... That's a lot for a code base, but not a lot for a configuration base that has…
comment by gowld · 2019-01-08 · in Monorepos and the Fallacy of Scale -
…history of Linux kernel development exists as a single git repository which you can check out here: https://github.com/torvalds/linux (Indeed, git was developed for this very purpose.) And it's very doubtful you're going to become larger…
comment by CydeWeys · 2019-01-08 · in Monorepos and the Fallacy of Scale -
…~/src/gnu/bash/bash -c 'BASH_ARGV0="XYZ"; cat /proc/$BASHPID/comm' bash Furthermore, https://github.com/torvalds/linux/blob/master/Documentation/... says: > 3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm >…
comment by dualbus · 2019-01-08 · in Bash 5.0 released -
…the target process's address space and fish out its argv[0]. This, erm... has some corner cases: https://github.com/torvalds/linux/blob/v4.20/fs/proc/base.c#... https://github.com/torvalds/linux/blob/v4.20/fs/proc/base.c#... Changing the…
comment by willglynn · 2019-01-08 · in Bash 5.0 released -
…https://www.reddit.com/r/programming/comments/ab601z/what_if... https://github.com/torvalds/linux/blob/master/Documentation/...
comment by based2 · 2018-12-31 · in What If Linus Torvalds Gets Hit by a Bus? (2000) -
I wasn't familiar with hme.ko comments, so looked it up. https://github.com/torvalds/linux/blob/master/drivers/net/et...
comment by isp · 2018-12-28 · in Please do not attempt to simplify this code -
Well, those are mostly just vendor specific drivers. Actual Bluetooth kernel code can be found here: https://github.com/torvalds/linux/tree/master/net/bluetooth IMO it is quite well organised and readable.
comment by makarhum · 2018-12-28 · in AirPods get stuck in low-quality 16 kHz audio mode when starting a VM -
https://github.com/torvalds/linux/tree/master/drivers/blueto... The Linux source for it is even less approachable.
comment by _asummers · 2018-12-28 · in AirPods get stuck in low-quality 16 kHz audio mode when starting a VM -
Heh, I know of one time the kernel did break backward-compatibility, intentionally even - https://github.com/torvalds/linux/commit/6b99e3569ba17b9fd38... My fan controller used the sysfs paths mentioned in the commit message directly. So…
comment by Arnavion · 2018-12-24 · in Re: [BREAKAGE] Since 4.18, kernel sets SB_I_NODEV implicitly on userns mounts -
…Here's a good example of a 4 year old using (presumably) her full name committing to the kernel: https://github.com/torvalds/linux/commit/690b0543a813b0ecfc5... If that kid grows up, moves to the EU, and wants Microsoft (GitHub) to stop…
comment by avar · 2018-12-19 · in Download all of your GitHub data -
I'm no C programmer but these looks like hints: https://github.com/torvalds/linux/blob/master/fs/ext4/ext4.h... https://github.com/torvalds/linux/blob/master/fs/ext4/ext4.h...
comment by gerdesj · 2018-12-05 · in PolicyKit: Users with UID greater than INT_MAX can execute any systemctl command -
…for others to view. The Linux[1] and git[2] projects mirror their code on Github, for example. [1] https://github.com/torvalds/linux [2] https://github.com/git/git
comment by u801e · 2018-12-02 · in Moving to GitLab -
…myself a helper tool for navigating the GOPATH: $ cg gh:torvalds/linux # cg = cd to git repo $ pwd .../src/github.com/torvalds/linux The code is at https://github.com/majewsky/gofu#rtree if anyone's interested.
comment by majewsky · 2018-11-30 · in Go 2, here we come -
…start_kernel(), the kernel entry point after booting up and handling the lowest level stuff in asm: https://github.com/torvalds/linux/blob/v4.19/init/main.c#L53... - grep for SYSCALL_DEFINE to find definitions of syscalls, e.g. this is…
comment by stiff · 2018-11-29 · in Programs to Read -
…looking for. To encourage you, here are a couple of contributions I have to Linux and Hadoop: https://github.com/torvalds/linux/commit/0bef71093d446165964... https://github.com/apache/hadoop/pull/114 If you read through the commit messages…
comment by sahil-kang · 2018-11-27 · in Ask HN: As a programmer, how do you know if you're a good one or not? -
…Of course they can't be easily changed because that would break everyone's boot environment. https://github.com/torvalds/linux/blob/master/Documentation/...
comment by rwmj · 2018-11-18 · in Bisected: The Unfortunate Reason Linux 4.20 Is Running Slower -
…AMD chip to have them was Cayman in 2010. Since we're citing kernel drivers here, take a look at https://github.com/torvalds/linux/blob/44786880df196a4200c17... and note how the function skips any parsing when virtual memory is used.)
comment by atq2119 · 2018-10-24 · in Unikernels: No Longer an Academic Exercise? -
…bit of it necessary even for new GPUs like Radeon R600. See r600_packet0_check, r600_packet3_check: https://github.com/torvalds/linux/blob/master/drivers/gpu/dr...
comment by pcwalton · 2018-10-24 · in Unikernels: No Longer an Academic Exercise? -
https://github.com/torvalds/linux/pull/437
comment by est · 2018-10-09 · in How newlines affect Linux kernel performance -
…No need to memory map or hard code the size of bounds. See `array_index_mask_nospec` in https://github.com/torvalds/linux/blob/master/arch/x86/inclu...
comment by comesee · 2018-09-26 · in Wasmjit: Kernel Mode WebAssembly Runtime for Linux -
…about and it is not "the exact same problem". * https://news.ycombinator.com/item?id=9653238 * https://github.com/torvalds/linux/blob/0e9b10395018ab78bf6bf...
comment by JdeBP · 2018-09-26 · in Threads and fork(): think twice before mixing them -
…thub.com/seanmhanson/fe370c2d8bd2b3228680e388... [2] https://github.com/torvalds/uemacs/issues/16 [3] https://github.com/torvalds/linux/pull/595#issuecomment-4236... [4] https://github.com/torvalds/pesconvert/issues/4 [5]…
comment by tzs · 2018-09-22 · in A Programming Language Underdog -
…and our community a harassment-free experience for everyone, regardless of...level of experience" https://github.com/torvalds/linux/blob/7876320f88802b22d4e2d... The code doesn't say they have to work with people of low levels of…
comment by jesstaa · 2018-09-18 · in Linux adds a code of conduct for programmers -
For those interested, here is the commit where the code of conduct was included: https://github.com/torvalds/linux/commit/8a104f8b5867c682d99... "code of conflict" was rewritten to "code of conduct".
comment by malikolivier · 2018-09-17 · in Linus Torvalds apologizes for his behavior, takes time off -
…my patch interacted badly with a pre-existing mistake in the thp code and caused this. Oops. [1] https://github.com/torvalds/linux/commit/19be0eaff [2] https://medium.com/bindecy/huge-dirty-cow-cve-2017-1000405-1...
comment by KenoFischer · 2018-09-17 · in Linus Torvalds apologizes for his behavior, takes time off -
I believe some AMD CPUs already support it, and there's some mention of it in Linux Kernel docs ( https://github.com/torvalds/linux/blob/master/Documentation/... ), but I'm not sure if it's actually used in practice or not.
comment by detaro · 2018-09-13 · in Cold Boot Attacks -
> AMD promised open drivers. We're still waiting. https://github.com/torvalds/linux/tree/master/drivers/gpu/dr... There you go.
comment by majewsky · 2018-09-13 · in Microsoft intercepting Firefox, Chrome installation on Windows 10 Insider build -
…many more have references to master/slave. [1] https://github.com/antirez/redis/issues/3185 [2] https://github.com/torvalds/linux/search?q=master+slave&unsc... [3] https://github.com/apple/darwin-xnu/search?q=master+slave&un...
comment by kgraves · 2018-09-10 · in The use of "blacklist" is offensive