Hacker GitHub

← All repos

apple/darwin-xnu

View on GitHub ↗ ★ 11,272 C archived

Legacy mirror of Darwin Kernel. Replaced by https://github.com/apple-oss-distributions/xnu

66 mentions on Hacker News by 60 people: 3 stories, 63 comments · first 2017-09-30 · latest 2026-05-02

Mentions per year 66 mentions · busiest year 2021 (14)
20082026
  1. https://github.com/apple/darwin-xnu Apple stopped updating this 5 years ago. I remember getting it to boot once long ago but I didn't have anything to actually do with it.
    comment by colechristensen · 2026-05-02 · in How fast is a macOS VM, and how small could it be?
  2. …externalization are big... [0] https://commandcenter.blogspot.com/2012/04/byte-order-fallac... [1] https://github.com/apple/darwin-xnu/blob/main/EXTERNAL_HEADE...
    comment by nyrikki · 2026-04-03 · in Big-Endian Testing with QEMU
  3. …it wasn't strictly based on the Lite2 release. Take a look at XNU 123.5's (OS X 10.0) kern/tty.c: https://github.com/apple/darwin-xnu/blob/xnu-123.5/bsd/kern/... Notice the SCCS version info dates the file 1/21/94. Now look at the Lite2…
    comment by spijdar · 2026-02-23 · in Linuxulator on FreeBSD Feels Like Magic
  4. …lver56k/Darwin-0.3/tree/master/kernel-... and the first archived version of the MacOS X xnu kernel at https://github.com/apple/darwin-xnu/tree/xnu-123.5/osfmk
    comment by johndoe0815 · 2023-10-20 · in OS/2 Warp, PowerPC Edition
  5. Apple has a bunch of stuff including Darwin up on GitHub. https://github.com/apple/darwin-xnu -- I have no idea how current any of that is however.
  6. > Update: fortunately there's still Mac OS. Go download the source for Darwin.. https://github.com/apple/darwin-xnu Compile it. Install it on your MacBook. Tell us how well MacOS boots that kernel.
    comment by FireBeyond · 2023-07-05 · in Red Hat Is Not Linux (2000)
  7. Technially, the Darwin Kernel it uses is OSS https://github.com/apple/darwin-xnu
  8. …DON'T redistribute it. And that's why google forbids the use of AGPL internally. >You mean macOS? https://github.com/apple/darwin-xnu Why dont you know that? If your a apple user and so interested in opensource?
    comment by nix23 · 2022-12-14 · in FreeBSD, Linux, and I
  9. …Quartz, there would be no GUI left. If that's what you want, then there is Darwin out there. https://github.com/apple/darwin-xnu There have been various efforts to make it run as a standalone OS with X11: • Pure Darwin:…
  10. Per the documentation ( https://github.com/apple/darwin-xnu/blob/main/bsd/kern/sys_u... ), it looks like ulock_wait might be one of the XNU primitives that supports os_unfair_lock.
    comment by cbsmith · 2022-10-10 · in Improving Firefox Responsiveness on macOS
  11. …introduced __ulock_wait2 and migrated code paths (notably pthread_cond_t) towards it: // https://github.com/apple/darwin-xnu/commit/d4061fb0260b3ed486147341b72468f836ed6c8f#diff-08f993cc40af475663274687b7c326cc6c3031e0db3ac8de7b24624610616b…
  12. …source code: > // For information about the following undocumented flags and functions see > // https://github.com/apple/darwin-xnu/blob/main/bsd/sys/ulock.... and > // https://github.com/apple/darwin-libplatform/blob/main/privat...
  13. …for XNU, the current incarnation of Apple's microkernel is available as part of the Darwin stuff: https://github.com/apple/darwin-xnu
    comment by cayleyh · 2022-10-04 · in Ask HN: Examples of Microkernels?
  14. …available, so might not be what you're looking for. It is available, and it's called darwin-xnu: https://github.com/apple/darwin-xnu a mix of Mach and a FreeBSD kernel: https://i0.wp.com/www.linuxandubuntu.com/wp-content/uploads/... And a…
    comment by nix23 · 2022-10-04 · in Ask HN: Examples of Microkernels?
  15. …but I'm not sure they are open for browsing, anymore. [0] https://github.com/apple/swift [1] https://github.com/apple/darwin-xnu [2] https://developer.adobe.com/photoshop/api/
    comment by ChrisMarshallNY · 2022-09-11 · in Ask HN: What's the best source code you've read?
  16. …This doesn't seem to be documented explicitly, but is somewhat revealed by this printf(): https://github.com/apple/darwin-xnu/blob/main/bsd/nfs/nfs_vf... > Besides, how many FUSE filesystems implement FORGET? Any file system that wants to…
    comment by EdSchouten · 2022-09-05 · in Userspace FUSE for macOS
  17. > with their 128 kB data cache Bigger than that. ( https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64... ) /* I-Cache, 256KB for Firestorm, 128KB for Icestorm, 6-way. / / D-Cache, 160KB for Firestorm, 8-way. 64KB for Icestorm,…
  18. The code you're probably thinking of actually has a mach lineage. https://github.com/apple/darwin-xnu/blob/main/osfmk/x86_64/p...
    comment by tedunangst · 2022-04-09 · in Bill Jolitz has died
  19. …address space is shared by the components though, which leads many to call it monolithic. [2] 1. https://github.com/apple/darwin-xnu/tree/main/osfmk 2. https://flylib.com/books/en/3.126.1.67/1/
  20. The recent (6 months ago) XNU kernel can still be compiled. Instructions are part of the GitHub repo: https://github.com/apple/darwin-xnu
    comment by gilgoomesh · 2022-01-18 · in Hello Mac OS X Tiger
  21. …anyway. Everything done with ObjC can be done in C if the developer is feeling adventurous enough. https://github.com/apple/darwin-xnu C 82.5% C++ 8.7% Python 2.3% Roff 2.3% Assembly 1.4% HTML 1.1% Other 1.7%
  22. https://github.com/apple/darwin-xnu
    comment by TravelPiglet · 2021-11-21 · in LLVM relicensing update and call for help
  23. …(not to mention that Apple's own MACF framework seems to take the place of jails in the code -- see https://github.com/apple/darwin-xnu/blob/main/bsd/kern/kern_... vs https://github.com/freebsd/freebsd-src/blob/main/sys/kern/ke... )
  24. …it also borrowed some things from FreeBSD, but I don't think they incorporated jails[1]. [1] https://github.com/apple/darwin-xnu/search?q=jail
  25. …(used to) do exactly the same thing. See `OSMetaClassDefineReservedUnused` in `OSObject.cpp`, here: https://github.com/apple/darwin-xnu/blob/main/libkern/c++/OS...
    comment by nielsbot · 2021-08-31 · in Implementing a class with void*
  26. kernel_task is "real", but yeah, part of its responsibility is issuing NOOPs for thermal control: https://github.com/apple/darwin-xnu/blob/main/osfmk/kern/thr...
  27. https://github.com/apple/darwin-xnu
  28. https://github.com/apple/darwin-xnu/blob/8f02f2a044b9bb1ad95...
    comment by saagarjha · 2021-05-24 · in CPU Bugs (2018)
  29. …FreeBSD. Even the syscall interface is from FreeBSD. Here's a diagram of macOS architecture[3]. [1] https://github.com/apple/darwin-xnu [2] https://developer.apple.com/library/archive/documentation/Da... [3]…
    comment by heavyset_go · 2021-04-06 · in Apple Donated $100-$249 to FreeBSD in 2021
  30. …of interest, these performance events (and the whitelist for this API), are described by Apple at https://github.com/apple/darwin-xnu/blob/main/osfmk/arm64/kp... Instruments.app is the official way to access performance counters. I believe…
  31. …you don't get access to the google nor the sony "magic" development. BTW: Darwin is opensource: https://github.com/apple/darwin-xnu
  32. …but a quick grep reveals plenty of references to "AIC" and "FIQ", in osfmk/arm64 for example. https://github.com/apple/darwin-xnu
    comment by Reason077 · 2021-01-21 · in How We Ported Linux to the M1
  33. The kernel source is here[1]. I don't see any hardware drivers there. [1]: https://github.com/apple/darwin-xnu
  34. Indeed. Git repo at https://github.com/apple/darwin-xnu . Note that that is 2 years behind. You can get a newer source dump from https://opensource.apple.com/source/xnu/xnu-6153.141.1/ . So, open source, but development isn’t done in the…
  35. …obviously, people won't be able to install a custom kernel even if patches did exist for it. [0] https://github.com/apple/darwin-xnu
    comment by herpderperator · 2020-11-27 · in Running Docker on Apple Silicon M1 (Follow-Up)
  36. …and see how it runs. I'm not sure if there's a way to change bootargs on M1 Macs, though. [1]: https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c... [2]: https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c...
  37. XNU, Darwin's kernel, is Mach + FreeBSD[1]. [1] https://github.com/apple/darwin-xnu
    comment by heavyset_go · 2020-11-22 · in Linux on iPad
  38. iOS is just BSD/Mach with an iOS Userland. Here is the kernel: https://github.com/apple/darwin-xnu
    comment by zepto · 2020-11-22 · in Linux on iPad
  39. iOS kernel is Darwin, a current BSD: https://github.com/apple/darwin-xnu
    comment by zepto · 2020-11-22 · in Linux on iPad
  40. Ummm... iPhones? iOS and macOS share almost completely the same kernel ( https://github.com/apple/darwin-xnu ).
    comment by snazz · 2020-03-20 · in The 2020 MacBook Air
  41. https://github.com/apple/darwin-xnu/blame/a449c6a3b8014d9406... It's been there for 11 years in this repo. Along with DECnet. Suppose there's no real drive to remove it.
    comment by mjlee · 2020-03-12 · in How Google Code Search Worked (2012)
  42. …this in more detail? It seems that the network stack, VFS, etc. from BSD are still heavily used? https://github.com/apple/darwin-xnu/tree/master/bsd Also, more recently they imported pf from OpenBSD: https://github.com/apple/darwin-xnu/blob…
    comment by danieldk · 2020-01-21 · in FreeBSD is an amazing operating system
  43. …http://newosxbook.com/src.jl?tree=xnu-1504.15.3&file=/bsd/sy... seems interesting. On the other hand, https://github.com/apple/darwin-xnu/blob/0a798f6738bc1db0128... is suggested to be a red herring because of…
    comment by exikyut · 2020-01-13 · in Bug #915: Please help
  44. …There is not even a proper repository with version history, as far as I can tell. Just this stuff: https://github.com/apple/darwin-xnu/commits/master That's literally a code dump.
  45. Others have already mentioned clang. Apple also open sourced their kernel for iOS/MacOS https://github.com/apple/darwin-xnu
  46. It's also mirrored on Github! [1] [1]: http://github.com/apple/darwin-xnu
    comment by keehun · 2019-09-05 · in Mach kernel
  47. …But if something was found in here, for instance, everything would be practically compromised: https://github.com/apple/darwin-xnu/blob/master/bsd/netinet/...
  48. …redacting code? The XNU kernel (used in macOS and iOS) is open-source and has been for some time: https://github.com/apple/darwin-xnu My reading of the article was that Apple has some custom logic in the A12 (for the implementation of the…
  49. The macOS kernel has lots of BSD bits in it [1], it's not a classic microkernel in that sense. [1] https://github.com/apple/darwin-xnu/tree/master/bsd
    comment by lukeh · 2018-11-11 · in iSH – A Linux shell on iOS
  50. Pretty sure it was introduced here: https://github.com/apple/darwin-xnu/commit/c10988c130af09087... In this commit a bunch of code was copy-pasted from BSD into ip_icmp.c in icmp_error() to quote IP packet data in icmp error responses.…
    comment by geogriffin · 2018-11-01 · in Kernel RCE in iOS/macOS with ICMP