Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

map() problem under 10.2



Hi,

my ISDN driver is broken under Jaguar and I'm a bit under pressure :-
( Maybe someone can help?

Here's the beef:
My kext supplies the received data as 4k chunks of memory via map() into user land. This is the way the CAPI standard interface works and I don't want to change that unneccessarily.
These memory blocks are allocated in the kernel and an IOMemoryDescriptor is instantiated. When a user land process wants to read the block, the kext does a memdesc->map() with the user land's task id and returns the virtual address via an IOKit scalar call.
This all worked well until 10.2!

Now the map() call always returns NULL!

I create the memDesc with 'kIODirectionOutIn' and the mapping with 'kIOMapReadOnly + kIOMapAnywhere'.
The user task_t I received from userClient->initWithTask().

Why doesn't it work anymore? Any ideas? Did I miss something obvious?

Thanks

Bernd
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.