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
-
…a legacy config. We build up a comma-separated list of options. It looks to be the second one. [0] https://github.com/torvalds/linux/commit/3e1aeb00e6d132efc15...
comment by shakna · 2022-01-20 · in Linux kernel heap buffer overflow in fs_context.c since version 5.1 -
Most user-space code is not difficult to port. An operating system is much more work. Take a look at https://github.com/torvalds/linux/tree/master/arch/arm64
comment by 8192kjshad09- · 2022-01-16 · in Essence: Desktop operating system built from scratch -
…kernel modules here: https://elinux.org/Android_Kernel_Features#List_of_kernel_fe... [1] ashmem https://github.com/torvalds/linux/blob/master/drivers/stagin... [2] hwbinder https://github.com/torvalds/linux/tree/master/drivers/androi...
comment by testtesttestte · 2022-01-04 · in Android in Docker without QEMU/emulator -
…user space to see all the potentials sources of additional latency a call like getpid() may incur: https://github.com/torvalds/linux/blob/c9e6606c7fe92b50a02ce... Again this is not by accident, this is on purpose. You’ll find a similar…
comment by CyberRabbi · 2022-01-03 · in Fixing stutters in Papers Please on Linux -
…casing) * Ubiquiti UniFi 6 LR * Also some others See here the open source wifi driver for MT7915: https://github.com/torvalds/linux/tree/master/drivers/net/wi...
comment by randomhacker123 · 2021-12-27 · in Analysis and reverse-engineering of the original Starlink router -
…my understanding that Intel has no plans to support. See the following link for supported devices. https://github.com/torvalds/linux/blob/bbf5c979011a099af5dc7...
comment by broknbottle · 2021-12-03 · in OS X-KVM: Run macOS on QEMU/KVM -
Linus takes a seemingly opposite stance when discussing word-wrapping commit messages: https://github.com/torvalds/linux/pull/17#issuecomment-56611...
comment by jonahx · 2021-11-28 · in Linus on Line Breaks (2020) -
…It is stable and language agnostic. The interface is defined at the processor architecture level. https://github.com/torvalds/linux/blob/master/Documentation/... https://man7.org/linux/man-pages/man2/syscall.2.html Any compiler can emit…
comment by matheusmoreira · 2021-11-09 · in liblinux: Architecture-independent access to Linux system calls -
…not actually required for kernel system calls. The binary interface is stable and will not change. https://github.com/torvalds/linux/blob/master/Documentation/... On Windows and other operating systems, things such as system call numbers…
comment by matheusmoreira · 2021-11-09 · in liblinux: Architecture-independent access to Linux system calls -
…because I discovered the Linux itself has a better solution that they use for their own tools: > https://github.com/torvalds/linux/blob/master/tools/include/... 1: https://news.ycombinator.com/item?id=29106179
comment by wongarsu · 2021-11-09 · in liblinux: Architecture-independent access to Linux system calls -
…them with the relevant memory barriers (which are especially important on ARM CPUs). [0] https://github.com/torvalds/linux/blob/master/Documentation/... [1] https://doc.rust-lang.org/std/intrinsics/fn.volatile_store.h...
comment by exDM69 · 2021-11-05 · in What memory model should Rust use? -
…of the Linux vDSO, some random bytes, program file name, user and group IDs, among other things. https://github.com/torvalds/linux/blob/master/include/uapi/l... https://github.com/torvalds/linux/blob/master/arch/x86/inclu...…
comment by matheusmoreira · 2021-11-04 · in Linux x86 program start up – How the heck do we get to main()? (2011) -
…how to get that driver[1] to compile and loaded as a kernel module was very educational. [1] https://github.com/torvalds/linux/blob/master/drivers/net/sb...
comment by matthewmcg · 2021-11-02 · in SPARCbook 3000ST: The coolest 90s laptop (2019) -
…Someday (when the parts shortage is over), I may productize it. https://www.w6rz.net/ofdm3.png https://github.com/torvalds/linux/blob/master/drivers/media/...
comment by drmpeg · 2021-10-28 · in Open IP over VHF/UHF Part 5 -
…://man7.org/linux/man-pages/man2/syscalls.2.html https://man7.org/linux/man-pages/man2/syscall.2.html https://github.com/torvalds/linux/blob/master/Documentation/...
comment by matheusmoreira · 2021-10-25 · in Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility -
> https://github.com/torvalds/linux/blob/master/tools/include/ ... Cool, thanks for sharing! > I really want to get into this. Hope to see more links on that topic popping up on HN. Are you aware, beyond "raw" OpenGL, of any GUI/TUI…
comment by southerntofu · 2021-10-24 · in OK Lenovo, we need to talk -
…this but then I discovered the kernel developers themselves already made one for their own tools. https://github.com/torvalds/linux/blob/master/tools/include/... People can include this awesome header file in a freestanding C project and…
comment by matheusmoreira · 2021-10-24 · in OK Lenovo, we need to talk -
…before returning. This technique is used in C programs (see Linux Kernel code example here: https://github.com/torvalds/linux/blob/master/fs/ext4/block_... )
comment by rmk · 2021-10-22 · in Ask HN: Why goto Still Exists in C#? -
…guests. I know that this was looked at a few year ago and no one had made it work then. 0: https://github.com/torvalds/linux/blob/2f111a6fd5b5297b4e92f...
comment by InvaderFizz · 2021-10-22 · in Show HN: vGPU and SR-IOV on consumer GPUs -
…[2] https://github.com/illumos/illumos-gate/blob/master/usr/src/... [3] https://github.com/torvalds/linux/blob/master/arch/s390/incl... [4] https://github.com/torvalds/linux/blob/master/Documentation/... [5] https://github.com/tor
comment by skissane · 2021-10-18 · in The Undocumented Microsoft “Rich” Header (2018) -
…doing any system specific syscalls and learning about calling conventions you won't get very far. https://github.com/torvalds/linux/blob/master/arch/x86/entry... (subject to change, see your specific kernel source) I think more fun is…
comment by raxxorrax · 2021-10-07 · in x86 assembly doesn’t have to be scary (2018) -
…this point. It doesn't take that much more assembly code to bootstrap C in the Linux kernel on x86: https://github.com/torvalds/linux/blob/master/arch/x86/boot/... There are a bunch of other headers in that file, but the "start_of_setup:"…
comment by teraflop · 2021-10-06 · in Writing a “bare metal” operating system for Raspberry Pi 4 -
…had a hard limit at 128KiB for args + env on x86. After the change it was variable up to 2MiB. https://github.com/torvalds/linux/commit/b6a2fea39318e43fee8...
comment by jeffbee · 2021-10-06 · in Moving Google toward the mainline -
…://man7.org/linux/man-pages/man2/syscalls.2.html https://man7.org/linux/man-pages/man2/syscall.2.html https://github.com/torvalds/linux/blob/master/Documentation/... Only on Linux is GNU truly just some optional userland. You can throw it…
comment by matheusmoreira · 2021-09-30 · in What the GNU? -
…g.rchapman.org/posts/Linux_System_Call_Table_for_x... [2] http://asm.sourceforge.net/syscall.html [3] https://github.com/torvalds/linux/blob/master/ipc/syscall.c
comment by blincoln · 2021-09-18 · in Modifying the Linux Kernel – New Syscalls -
…[0][1], making Wine ... closer to a WSL1 equivalent?) [0] https://lkml.org/lkml/2020/8/10/1323 [1] https://github.com/torvalds/linux/blob/master/include/linux/...
comment by spijdar · 2021-09-10 · in Windows Subsystem for Linux GUI -
“Linux releases as GPLv2 or later for example” Linux doesn’t use “or later”. https://github.com/torvalds/linux/blob/master/COPYING : The Linux Kernel is provided under: SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note Being under…
comment by Someone · 2021-09-09 · in 60x speed-up of Linux “perf” -
…listed here and the underlying systems supporting them. How long could that take, a whole weekend? https://github.com/torvalds/linux/blob/master/arch/x86/entry...
comment by raxxorrax · 2021-09-07 · in The operating system: should there be one? (2013) [pdf] -
…the topic is your code not your person No he definitely attacks people's person. "You're a moron." https://github.com/torvalds/linux/pull/17#issuecomment-56599...
comment by chrisseaton · 2021-09-06 · in Linus Torvalds: “GitHub creates useless garbage merges” -
…because the Go runtime itself was supposed to properly interoperate with a C library but didn't. https://github.com/torvalds/linux/blob/master/Documentation/... > These functions are called just like ordinary C function according to your…
comment by matheusmoreira · 2021-09-05 · in A nasty bit of undefined timezone behavior in Golang -
…computing, and to- EventSourcing style- extend the graph of computing as we might see fit. [1] https://github.com/torvalds/linux/tree/master/drivers/leds/t... [2] https://news.ycombinator.com/item?id=28348148
comment by rektide · 2021-08-31 · in Computers should expose their internal workings as a 6th sense -
…then also wasn't standard-compliant [2], [3]. [1]: https://github.com/Dunedan/mbp-2016-linux [2]: https://github.com/torvalds/linux/commit/124298bd03acebd9c9d... [3]: https://lists.infradead.org/pipermail/linux-nvme/2017-Februa...
comment by Dunedan · 2021-08-23 · in Gnome Shell on the Apple M1, bare metal -
…or processes are just tasks to the kernel. Kernel threads, which are not user space are different. https://github.com/torvalds/linux/blob/master/include/linux/... The sched wouldn't be able to use a Red-Black trees in the way it does if it…
comment by nyrikki · 2021-08-20 · in System CPU Usage and Glibc -
…For instance, check the linux kernel's explanation of circular buffers and how to use them [1]. [1] https://github.com/torvalds/linux/blob/master/Documentation/... > What does it mean to "relax an edge"? Why do we need to do it V-1 times?…
comment by kilburn · 2021-08-07 · in Reflections on 10k Hours of Programming -
…as explaining how the code is doing something. For example take the app limited detection function: https://github.com/torvalds/linux/blob/master/net/ipv4/tcp_r...
comment by juancb · 2021-08-06 · in Reflections on 10k Hours of Programming -
…random number generation... Too slow to be useful, and the BCM283x SoC already has an internal RNG: https://github.com/torvalds/linux/blob/master/drivers/char/h... > ... or hardware-accelerated hashing The TPM is on a really slow bus (33…
comment by duskwuff · 2021-08-04 · in Uptime Lab's CM4 Blade Adds NVMe, TPM 2.0 to Raspberry Pi -
…is making their porting efforts difficult. This commit in upstream ends up getting split in half: https://github.com/torvalds/linux/commit/8ce29c679a6ecefb88d... With only 3 lines of it getting pulled into i40e-2.13.10:…
comment by nik_0_0 · 2021-07-30 · in Hunting a bug in the i40e Intel driver -
…fewer mistakes -vs- confusion where pointers and integers degrade to a common type. A random line: https://github.com/torvalds/linux/blob/122fa8c588316aacafe7e... > void crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) These are…
comment by viraptor · 2021-07-24 · in Rust for Linux redux -
…I interpret it as a way to compete against(proprietary) CUDA dominance, but maybe that is wrong? https://github.com/torvalds/linux/tree/master/drivers/gpu/dr...
comment by flakiness · 2021-07-21 · in Reverse-Engineering the Mali G78 -
Didn't see a link to the fix. Here it is: https://github.com/torvalds/linux/commit/b29c457a65114359601...
comment by ilkkao · 2021-07-15 · in CVE-2021-22555: Turning \x00\x00 into 10000$ -
Torvalds did weigh in on it. It's disabled by default because it apparently breaks some legacy stuff. https://github.com/torvalds/linux/commit/561ec64ae67ef25cac8...
comment by tyingq · 2021-07-06 · in Posix hardlink heartache -
…Thanks for the verbatim quote, "namespace lookup" found the source of the message immediately: https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5... . So this uses acpi_os_printf() (defined at…
comment by exikyut · 2021-06-28 · in Ask HN: Best “I brought down production” story? -
…series to send to the proper reviewers and mailing lists”. Also, Linux is already mirrored to GH https://GitHub.com/torvalds/Linux
comment by judge2020 · 2021-06-23 · in Pulling GitHub into the Linux kernel process -
Sadness trigger warning, brace yourself: https://github.com/torvalds/linux
comment by OJFord · 2021-06-23 · in Pulling GitHub into the Linux kernel process -
…this. The Linux kernel itself has a nolibc.h file that they use for their own freestanding tools: https://github.com/torvalds/linux/blob/master/tools/include/... It's even better than what I came up with. Permissively licensed. Supports…
comment by matheusmoreira · 2021-06-21 · in Ask HN: How to learn proper systems programming? -
…(note the double --force). Potentially of interest: `__noreturn machine_real_restart` in reboot.c ( https://github.com/torvalds/linux/blob/5bfc75d92efd494db37f5... ) Bonus points for additionally finding a way to trigger the "secure erase"…
comment by d110af5ccf · 2021-06-15 · in Irish police to be given powers over passwords -
There's code in the Linux FTDI driver that correctly handles the bricked FTDI clones: https://github.com/torvalds/linux/blob/master/drivers/usb/se...
comment by jah · 2021-06-15 · in FTDI FT232RL: Real vs. Fake (2014) -
…Public License version 2 only [1] https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html [2] https://github.com/torvalds/linux/blob/master/COPYING
comment by throwaway2037 · 2021-06-04 · in An Unbelievable Demo -
…Linux kernel has tons of refcounting, so much so that it has a utility file for reference counters: https://github.com/torvalds/linux/blob/master/include/linux/... )
comment by masklinn · 2021-05-16 · in Things you can’t do in Rust (and what to do instead) -
…are usually submitted as standalone commits. You can find tests for several kernel subsystems here: https://github.com/torvalds/linux/tree/master/tools/testing
comment by caskstrength · 2021-05-09 · in Dropping cache didn’t drop cache