Hacker GitHub

← All repos

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

Mentions per year 57 mentions · busiest year 2026 (20)
20082026
  1. …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
  2. …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
  3. …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
  4. 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?
  5. Well, https://github.com/apple-oss-distributions/xnu is, but it's not enough to make you an iPhone.
  6. 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
  7. …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()
  8. The macOS kernel (XNU) as well as the basic system underneath macOS (darwin) is open source. https://github.com/apple-oss-distributions/xnu
  9. Looks like it is still getting updates and has moved here: https://github.com/apple-oss-distributions/xnu
  10. 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
  11. They probably aren’t affected because the buggy code was only added in macOS 26: https://github.com/apple-oss-distributions/xnu/blame/f6217f8...
  12. The bug was introduced only last year in macOS 26: https://github.com/apple-oss-distributions/xnu/blame/f6217f8...
  13. …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...
  14. > 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”
  15. …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
  16. 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
  17. 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
  18. …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
  19. 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
  20. …whereas FreeBSD kernel and device driver code cannot. 0 - https://en.wikipedia.org/wiki/XNU 1 - https://github.com/apple-oss-distributions/xnu
  21. …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 -…
  22. …[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]
  23. …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
  24. …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…
  25. …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
  26. 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
  27. https://github.com/apple-oss-distributions/xnu
    comment by jjtheblunt · 2025-04-06 · in Apple’s Darwin OS and XNU Kernel Deep Dive
  28. 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.…
  29. …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...
  30. 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
  31. 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…
  32. …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/
  33. …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
  34. …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
  35. …(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
  36. …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…
  37. 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
  38. …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…
  39. 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
  40. …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
  41. …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...
  42. > 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
  43. …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)
  44. 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)
  45. 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)
  46. …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...
  47. 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)
  48. 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…
  49. …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...
  50. …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…