Questions tagged [xnu]

xnu is the name of the operating system kernel that underpins Mac OS X/darwin and iOS.

xnu is the name of the operating system kernel that underpins Darwin, which in turn is the core of Apple's macOS (formerly OS X and Mac OS X), iOS/iPadOS (formerly iPhoneOS), tvOS, and watchOS operating systems. It has its origins in the NeXTStep operating system, and is a combination of parts of the Mach kernel (mainly the virtual memory subsystem and inter-process communication via Mach "ports"), the 4.3BSD kernel (networking, process management, POSIX compatibility, VFS/file system layer) and a device driver subsystem called the I/O Kit, which was developed in C++ specifically for the xnu kernel.

147 questions
0
votes
1 answer

Invalidate kextcache after removing driver launchd plist file

I've created uninstaller for my driver, that remove its matching plist file from /Library/LaunchDaemons so that it won't be loaded again by launchd on the next boot cycle. However, it doesn't seems to take any effect on my driver that is still…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
4 answers

How to print kernel call stack in Mac OS X

In Linux, I can use echo t > /proc/sysrq-trigger to dump the kernel call stack of all threads in system. Is there any method in Mac OS X for the same purpose? or any method to dump kernel stack of one process?
0
votes
0 answers

Dtrace invalid address error when extracting process command line

I'd like to have dtrace script that print new processes' cmdline and their matching parent name. i.e. : if I ran /Users/bla/myexec arg1 arg2 arg3 from bash I will get something like : parent is bash process is --> /Users/bla/myexec arg1 arg2…
Zohar81
  • 4,554
  • 5
  • 29
  • 82
0
votes
1 answer

What is the resolution of xnu's clock_get_time for CALENDAR_CLOCK?

What is the resolution of the xnu kernel function clock_get_time for CALENDAR_CLOCK?
Coder
  • 441
  • 2
  • 17
0
votes
0 answers

kevent & USB serial ports

I'm having trouble using kevent on mac with a USB serial console. I've narrowed it down to: #include
0
votes
1 answer

The Default Freezer (iOS)

Levin had a chapter in his book Mac OS X and iOS internals: To the Apple's Core. related to The Default Freezer which can be used in Virtual Memory Management. It is stated that it is implemented in osfmk/vm/default_freezer.c At the time of writing…
blaffie
  • 505
  • 1
  • 10
  • 32
0
votes
1 answer

Adding fpirntf() into xnu kernel tcp_xxx.c, stdio.h not found

Greeting everyone on stackoverflow! I am trying to add fpirntf() to XNU kernel tcp_xxx.c file, so when TCP moves it can print parameters to a file, for better understanding how TCP works, but fatal error occurs like follows: $ sudo make…
wwkzfyt
  • 3
  • 1
0
votes
0 answers

Page Fault on Call Instruction

I am trying to boot a custom fork of Apple’s XNU kernel (sources available here). The kernel is triple-faulting on line 325 of start.s. Examining the QEMU log points to a page fault for the address 0x10BFF8. This address is one 4K page + 8 bytes…
wjk
  • 1,219
  • 11
  • 27
0
votes
1 answer

Building XNU For A4 iPhone/iPod

im trying to use winocm's xnu kernel "http://goo.gl/GuJnWn" ive partially used this http://goo.gl/TK6iUZ guide to get ctfconvert, ctfmerge and ctfdump. I think i have everything i need but i get this error after typing make in the folder i was in 1…
Core
  • 103
  • 3
0
votes
2 answers

OS X 10.8 - Address space layout post syscall

I have disabled swapping altogether on my OS X 10.8.2 (which runs x86 LP64 kernel) box for experimental reasons, I know this is a bad idea. When I do a system call from any app what does the address space layout look like ? I.e. Now as entire…
0
votes
2 answers

Why isn't my kernel extension writing to kernel.log

I have a simple kernel extension: kern_return_t HelloWorld_start (kmod_info_t *ki, void * d) { printf("Hello World\n"); return KERN_SUCCESS; } kern_return_t HelloWorld_stop (kmod_info_t * kid, void * d) { printf("Goodbye World\n"); …
mr-sk
  • 13,174
  • 11
  • 66
  • 101
-1
votes
1 answer

Is it feasible to write a macOS kernel-extension for Ventura?

I am planning to write a kernel extension for macOS Ventura to control sleep mode during some states that are not fully available from user land, such as lid-closing, power source change, etc. Also more control of the external displays. There's a…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
1 2 3
9
10