Re: about sys_call and ioctl (Modified by Shawn Erickson)
-- Redirected on behalf of Ye Wenxi -- Dear sir, Thank you for your advice. What I need is to access device from user space.I think the method of accessing any type of device should be similar. OK. Actually I will write a File Filter Driver. And in user space I want to access the driver and encode files. Actually I want to encrypt files. For example, now there are some files (such as test1.rtf and test2.txt and so on)in Users/Ye/documents/・, and normally everyone can open or read or write or save them. What I want to do is to protect them by command [Macintosh:/]Mary%crypt /Users/Ye/documents/ ・ After I input such command [Macintosh:/]Ye%crypt /Users/Ye/documents/・ the contents of the files (such as test1.rtf and test2.txt and so on) under folder /Users/Ye/documents/ will be encrypted. Therefore anyone else can not read the contents of the files unless I input the decode command. Any advice will be helpful. Thank you and best regards. Ye Wenxi in Tokyo On Apr 19, 2004, at 7:11 AM, yetty wrote: question 1: Can I register my driver in the kernel and then access the kernel in Mac OS X like that? question2:Can I create my system call in the kernel and use it in user space in Mac OS X like that? What type or driver will you be working on? What does the driver do? Based on answer to those the correct / recommended access/interface method varies. Note the driver and kernel extension model between Linux and Mac OS X is different and so talking about direct parallel is likely not the best way to attack things, instead outline what you need or are trying to do / implement. _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
yetty