apple-oss-distributions/xnu
View on GitHub ↗ ★ 3,820 C
57 mentions on Hacker News by 47 people: 2 stories, 55 comments · first 2022-04-25 · latest 2026-09-21
20082026
-
…for quite a few components: https://github.com/apple-oss-distributions notably also the kernel https://github.com/apple-oss-distributions/xnu
comment by steve1977 · 2026-09-21 · in M5 Ultra Mac Studio Review -
…harder or easier. Here is my corroboration. Apple publishes XNU to the world in this repository: https://github.com/apple-oss-distributions/xnu There is no such publication of the GUI frameworks required by macOS programs. > I do think…
comment by AdieuToLogic · 2026-09-01 · in Run macOS Software on Linux -
…you can find slightly more info on how to use it in some XNU (macOS kernel) tests, namely this one: https://github.com/apple-oss-distributions/xnu/blob/main/tes...
comment by ishaderdevicemg · 2026-09-01 · in Run macOS Software on Linux -
Here's macOS 26.5's XNU: https://github.com/apple-oss-distributions/xnu/tree/ac9718fb... Could just be what the devs have available, if they're really already going to the trouble to target RPi?
comment by jeandrek · 2026-08-31 · in RavynOS: Pre-alpha open-source OS based on Darwin, FreeBSD, Apple open-source -
Well, https://github.com/apple-oss-distributions/xnu is, but it's not enough to make you an iPhone.
comment by mikestorrent · 2026-08-19 · in Google has stopped pushing Git tags for some Android source code -
They do, what Apple does release is referenced often in discussions. https://github.com/apple-oss-distributions/xnu/blob/f6217f89... https://lore.kernel.org/asahi/c13d95d0-911f-48f6-b4ca-8a5e9a...
comment by SamuelAdams · 2026-07-02 · in Asahi Linux 7.1 Progress Report -
…after it’s copied all the necessary attributes of the parent into the new process structure: https://github.com/apple-oss-distributions/xnu/blob/f6217f89...
comment by dcrazy · 2026-06-06 · in Moving beyond fork() + exec() -
The macOS kernel (XNU) as well as the basic system underneath macOS (darwin) is open source. https://github.com/apple-oss-distributions/xnu
comment by dindresto · 2026-05-15 · in First public macOS kernel memory corruption exploit on Apple M5 -
Looks like it is still getting updates and has moved here: https://github.com/apple-oss-distributions/xnu
comment by doubled112 · 2026-05-02 · in How fast is a macOS VM, and how small could it be? -
XNU has this oddity: https://github.com/apple-oss-distributions/xnu/blob/f6217f89... Redacted from open source XNU, but exists in the closed source version
comment by my123 · 2026-04-11 · in Investigating Split Locks on x86-64 -
They probably aren’t affected because the buggy code was only added in macOS 26: https://github.com/apple-oss-distributions/xnu/blame/f6217f8...
comment by comex · 2026-04-07 · in A macOS bug that causes TCP networking to stop working after 49.7 days -
The bug was introduced only last year in macOS 26: https://github.com/apple-oss-distributions/xnu/blame/f6217f8...
comment by comex · 2026-04-06 · in A macOS bug that causes TCP networking to stop working after 49.7 days -
…You can see what these control (and which bits "csrutil disable" toggles) in this include file: https://github.com/apple-oss-distributions/xnu/blob/f6217f89...
comment by rzzzt · 2026-03-27 · in Make macOS consistently bad unironically -
> They don't have an open source kernel Yes they do in fact, it's called darwin XNU https://github.com/apple-oss-distributions/xnu
comment by GalaxyNova · 2026-03-13 · in “This is not the computer for you” -
…For that matter, compare the the differences between vfs_bio.c in XNU: https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-... With Lite2's, where most function bodies have been replaced with the comment "Body deleted.",
comment by spijdar · 2026-02-23 · in Linuxulator on FreeBSD Feels Like Magic -
It's rather a bit more BSD than merely having a "C API that resembles BSD" or a "BSD userland". https://github.com/apple-oss-distributions/xnu/tree/main/bsd You can find there the better part of a whole BSD kernel, including the…
comment by netbsdusers · 2026-02-23 · in Linuxulator on FreeBSD Feels Like Magic -
https://github.com/apple-oss-distributions/xnu/tree You'll find there's a great deal left. Have a look at all the fundamental datastructures (proc, vnode, tty, file to name a few) for a starting point.
comment by netbsdusers · 2026-02-22 · in Linuxulator on FreeBSD Feels Like Magic -
…the one used in Sonoma: sysctl kern.sched -> edge which seems to be an extension over "clutch": https://github.com/apple-oss-distributions/xnu/blob/main/osf... "… Single-cluster, symmetric (SMP) systems can run with just the Clutch policy,…
comment by poige · 2026-02-09 · in Apple XNU: Clutch Scheduler -
Check out the scheduler documentation that Apple has in the xnu repo. https://github.com/apple-oss-distributions/xnu/blob/main/doc...
comment by macshome · 2026-02-08 · in Why E cores make Apple silicon fast -
…whereas FreeBSD kernel and device driver code cannot. 0 - https://en.wikipedia.org/wiki/XNU 1 - https://github.com/apple-oss-distributions/xnu
comment by AdieuToLogic · 2025-12-20 · in The FreeBSD Foundation's Laptop Support and Usability Project -
…fraught with difficulty. See QNX[2] for another example of a micro-kernel OS architecture. 0 - https://github.com/apple-oss-distributions/xnu 1 - https://books.apple.com/us/book/mac-os-x-internals/id4343583... 2 -…
comment by AdieuToLogic · 2025-12-20 · in The FreeBSD Foundation's Laptop Support and Usability Project -
…[2] https://github.com/apple-oss-distributions/libpthread/blob/1... [3] https://github.com/apple-oss-distributions/xnu/blob/e3723e1f...
comment by comex · 2025-09-14 · in macOS Tahoe is certified Unix 03 [pdf] -
…1. https://www.windriver.com/ 2. https://chdk.fandom.com/wiki/For_Developers 3. https://github.com/apple-oss-distributions/xnu 4. https://en.wikipedia.org/wiki/QNX
comment by adolph · 2025-08-30 · in John Carmack's arguments against building a custom XR OS at Meta -
…here[2]. 0 - https://en.wikipedia.org/wiki/XNU 1 - https://en.wikipedia.org/wiki/Mach_(kernel) 2 - https://github.com/apple-oss-distributions/xnu 3 - https://cgit.freebsd.org/src/ 4 - https://man.freebsd.org/cgi/man.cgi?query=jail&apropos=0…
comment by AdieuToLogic · 2025-06-10 · in Apple announces Foundation Models and Containerization frameworks, etc -
…here[2]. 0 - https://en.wikipedia.org/wiki/XNU 1 - https://en.wikipedia.org/wiki/Mach_(kernel) 2 - https://github.com/apple-oss-distributions/xnu
comment by AdieuToLogic · 2025-06-07 · in A year of funded FreeBSD development -
The core of it always has been open source: https://github.com/apple-oss-distributions/xnu
comment by chuckadams · 2025-04-07 · in Apple’s Darwin OS and XNU Kernel Deep Dive -
https://github.com/apple-oss-distributions/xnu
comment by jjtheblunt · 2025-04-06 · in Apple’s Darwin OS and XNU Kernel Deep Dive -
There are a few references to the OSF Mach kernel from '98 in a few files, such as https://github.com/apple-oss-distributions/xnu/blob/main/osf... EDIT: Apple calls out Mach 3.0. https://developer.apple.com/library/archive/documentation/Da.…
comment by p_ing · 2025-03-23 · in The SeL4 Microkernel: An Introduction [pdf] -
…based on Mach 3 and parts of Mach 4. The OSF MK ancestry of macOS XNU can still be seen in paths: https://github.com/apple-oss-distributions/xnu/tree/main/osf...
comment by danieldk · 2025-03-23 · in The SeL4 Microkernel: An Introduction [pdf] -
Take a look at it yourself if you're curious. The kernel code is open source: https://github.com/apple-oss-distributions/xnu
comment by nmgycombinator · 2025-03-20 · in Leaking Passwords and more on macOS -
Yes, panicking in kernels is bad. I've followed the whole R4L fight about working around it. https://github.com/apple-oss-distributions/xnu/blob/main/doc... https://github.com/apple-oss-distributions/xnu/blob/main/doc... Upstream fbounds…
comment by mimd · 2025-02-19 · in Greg K-H: "Writing new code in Rust is a win for all of us" -
…open source. In fact XNU itself is open source even though its BSD licenced so does not have to be. https://github.com/apple-oss-distributions/xnu There even seems to be an open source variant of the OS https://www.puredarwin.org/
comment by graemep · 2025-01-12 · in Matt Mullenweg deactivates WordPress accounts of contributors planning a fork -
…exhaustion on 64-bit phones was definitely an issue. See here for where this is enforced in XNU: https://github.com/apple-oss-distributions/xnu/blob/xnu-1121... I assume Apple does this specifically because they want to prevent apps from…
comment by umanwizard · 2024-10-08 · in Virtualizing iOS on Apple Silicon -
…of CUPS (Common UNIX Printing System) - https://www.cups.org/ - Darwin kernel is open source - https://github.com/apple-oss-distributions/xnu - Webkit - https://opensource.apple.com/projects/webkit/
comment by whalesalad · 2024-09-30 · in macOS Sequoia is certified to Unix 03 -
…(latest release is 14.5) and the last update to the XNU kernel github mirror ( https://github.com/apple-oss-distributions/xnu ) happened about 5 months ago.
comment by johndoe0815 · 2024-08-15 · in Third Wave (Commercial) Open Source -
…relevant stuff: https://github.com/search?q=org%3Aapple-oss-distributions+%2... • memorystatus.md : https://github.com/apple-oss-distributions/xnu/blob/94d3b452... # Memorystatus Subsystem Dealing with memory pressure by forcibly…
comment by justinclift · 2024-08-12 · in MacBook Air, M2 Chip, 8GB RAM: Nothing is open, but half the memory is gone -
If you can convince Apple to change this code let me know: https://github.com/apple-oss-distributions/xnu/blob/94d3b452...
comment by saagarjha · 2024-07-31 · in Building static binaries with Go on Linux -
…lot and would love to see pursued. We know that the XNU kernel from Snow Leopard still lists PPC ( https://github.com/apple-oss-distributions/xnu/tree/xnu-1504... ) but it probably won't be easy to build and replace a 10.5 kernel with. The…
comment by SpecialistK · 2024-04-09 · in The challenges of building modern open source software on PowerPC Mac OS X -
Not really. See: https://en.wikipedia.org/wiki/XNU and https://github.com/apple-oss-distributions/xnu
comment by dboreham · 2024-03-07 · in The Berkeley Software Distribution -
…do tend to do a lot of moving data around, which these extensions (on ARM, anyways) excel at. [1] https://github.com/apple-oss-distributions/xnu/blob/main/osf...
comment by sweetjuly · 2023-11-22 · in Vector Packet Processing -
…In particular, a family of forked processes may be created with a shared affinity namespace. https://github.com/apple-oss-distributions/xnu/blob/main/osf...
comment by infamouscow · 2023-10-23 · in How does macOS manage virtual cores on Apple Silicon? -
> When I'm seeing a weird network issue, I want to be able to peer into the kernel's tcp stack. https://github.com/apple-oss-distributions/xnu/tree/xnu-8796...
comment by torstenvl · 2023-08-03 · in Coming Soon: Fedora for Apple Silicon Macs -
…HFS Standard reader or something, but they used the Apple code for HFS+ so it ended up as a hybrid. https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-...
comment by astrange · 2023-07-31 · in HFS Origins: The Turbo File System (2017) -
ok but still: https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-... (c) 1997-1999 Apple Computer, Inc. All Rights Reserved (c) 1990, 1992 NeXT Computer, Inc. All Rights Reserved
comment by ksherlock · 2023-07-31 · in HFS Origins: The Turbo File System (2017) -
That's the wrong place (confusingly enough), look in here. https://github.com/apple-oss-distributions/xnu/tree/rel/xnu-...
comment by astrange · 2023-07-31 · in HFS Origins: The Turbo File System (2017) -
…line parameter to control what to overwrite.) Nice of Apple to provide the exploit code. ;-) [1] https://github.com/apple-oss-distributions/xnu/blob/xnu-8792...
comment by musicale · 2022-12-18 · in Get root on macOS 13.0.1 the macOS Dirty Cow bug -
The bug is in one of these two lines: https://github.com/apple-oss-distributions/xnu/blob/5c2921b0... https://github.com/apple-oss-distributions/xnu/blob/5c2921b0... This uses the macro SLIST_REMOVE ( https://github.com/apple-oss-distributi…
comment by saagarjha · 2022-12-10 · in I think I found a Mac kernel bug (2018) -
Darwin is open source. Here's the repo for their kernel: https://github.com/apple-oss-distributions/xnu/tree/main . The userspace stuff can be found here: https://github.com/apple-oss-distributions/distribution-macO... . Some stuff that's…
comment by mort96 · 2022-12-01 · in Spotify CEO renews attack on Apple after Musk's salvo -
…to speed up compression of up to page size increments specifically to aid in this model [1] [1] https://github.com/apple-oss-distributions/xnu/blob/bb611c8f...
comment by Sirened · 2022-11-10 · in Stretch iPhone to its limit: 2GiB Stable Diffusion model runs locally on device -
…It's been possible to build your own XNU[5] for a long time. Is that still possible now? [1]: https://github.com/apple-oss-distributions/xnu [2]: https://github.com/llvm/llvm-project [3]: https://github.com/apple-oss-distributions/llvmCore…
comment by davidbalbert · 2022-10-27 · in Towards the next generation of XNU memory safety: kalloc_type