thank you. I figured out the communication between user space and kernel
with your help.

2009/12/30 dmitriy moskvitin <[email protected]>

> Vold use socket(PF_NETLINK, SOCK_DGRAM,NETLINK_KOBJECT_UEVENT)
> (vold.c) to receive messages from kernel about add/change/remove
> modules. When user insert sd-card, kernel create device object with
> name /sys/devices/platform/.../mmcblk0 and send broadcast message to
> user space...
>
> On Dec 29, 5:57 pm, chungae9ri <[email protected]> wrote:
> > Hi all.
> > I am studying the android and now looking into the vold and
> > MountService/MountListener.
> > I have a question that how can the vold detect SD card insert/remove?
> > I can trace that the interrupt handler mmc_rescan(..) in kernel/
> > drivers/mmc/core/core.c call device_add() but what is the next? How
> > can the vold daemon know there is an SD card insert/remove interrupt?
> > I am lost in the relationship between vold daemon and SD insert/remove
> > intr.
> >
> > any helps will be appreciated.
> > thanks in advance.
>
> --
> unsubscribe: 
> [email protected]<android-porting%[email protected]>
> website: http://groups.google.com/group/android-porting
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to