From 6db3a4601533dcdc97a77bf2aaa3c964b026070c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Sep 2012 17:57:59 +0200 Subject: explain that mig uses .defs to generate stubs --- rpc.mdwn | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rpc.mdwn') diff --git a/rpc.mdwn b/rpc.mdwn index 5adae2d4..87f22593 100644 --- a/rpc.mdwn +++ b/rpc.mdwn @@ -30,10 +30,10 @@ Open is a bit complex because it finds its way to the eventual translator, but for a mere file on the root filesystem, what happens boils down to calling the dir_lookup function against the root filesystem. This is an RPC from the fs interface (see fs.defs). The implementation of the function is thus actually -generated using mig during the glibc build in RPC_dir_lookup.c. This generated -function essentially encodes the parameters into a data buffer, and makes a -mach_msg system call to send the buffer to the root filesystem port, with the -dir_lookup RPC id. +generated from the fs.defs file using mig during the glibc build in RPC_dir_lookup.c. +This generated function essentially encodes the parameters into +a data buffer, and makes a mach_msg system call to send the buffer to the root +filesystem port, with the dir_lookup RPC id. The root filesystem, for instance ext2fs, was sitting in its main loop (libdiskfs/init-first.c, master_thread_function()), which calls -- cgit v1.2.3