site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=/D0zrQ2OShr/crrnpPlkLlmAiLq1V0n7Nk8Sg8AKYIo=; b=tOOS6ZzEnEE0pPKgNtOpUaXEEphX0UeufPJgc3Tt2mKldNbkRAz8FdvFH0MuSox1aP ZqPMuXWhGgBapZco8obZQkPgmhvsEccfMo9YIBN4h55hgpExVuELD3lCy0wJmnhSHlN9 bO7wVzoscohK0VXD/EfmLesZ+9BFpvVax1jxo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uO1yVaBlBEPPuGT8WL0Ji85j+algGzHdp5U2wB1iUozJItiiSyEo2yZTnfR+rKmqIi jXPtwZRh4UsTL2pzVLqBxPUcm9qVG7IyoFoadfCssyPcodaHHBTCaZot47hTv8w0yBdx kXzGoX2VdNn2l3b8pz6YHIpv3t722T5/sn9Ug= Since you already have a control device, how about having the kernel create the socket and connect to the server, then forward data from the server into the control socket and from the control socket to the server ? When the auth is complete, user process closes the control socket and exits. Bogdan Harjoc On Sat, Jul 17, 2010 at 4:54 AM, Joe Lowe <joe.lowe@pismotechnic.com> wrote:
I have a file system kernel module that exposes a remote file system via a file system protocol over a socket. Creating/connecting the socket and performing initial authentication to the server is done in user mode. The socket is then handed to the kernel module via an ioctl to a control device. [...] The primary problem is that the sock_retain and sock_release kernel calls are private exports and are not defined in the public kernel headers. Without these calls the socket will get torn down when the user mode process exits or closes the fd.
Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com