On Fri, Jun 29, 2012 at 12:15 PM, M <xuetao....@gmail.com> wrote:
> Hi, alll,
>
> Is there any mechanism inside the Android that could correlate
> Framework API with its corresponding kernel system calls?
>
> For example, one Internet API call:  java.net.Socket.<init>().  How
> could we know which system calls from kernel support such api calls
> from the framework?
>
> Thanks for your help.
>
> M
>

In that specific example, and in many others, the framework is calling
down into native code through system wrappers (from harmony, is it
still called that...?)

To handle these cases, when you get down to a baseline set of system
calls (i.e., the traditional unix ones..), the code is in classes like
OSNetworkSystem.java ..., for example (the first google result..):

http://code.google.com/p/sipdroid/source/browse/trunk/src/org/sipdroid/net/impl/OSNetworkSystem.java?r=156

There's a similar implementation for the filesystem, etc...

kris

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to