Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] Exactly how the sockets are being used in between the user space and kernel?
@ 2005-04-14 10:29 vaishali  paisal
  2005-04-14 10:38 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: vaishali  paisal @ 2005-04-14 10:29 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 1951 bytes --]

  Hello Marcel,
Thanks for replying to my question.Can u please explain me how the socket communication is going on between the user space and kernel space?
I can find out the code defining new address familiy AF_BLUETOOTH.then new protocols for L2CAP,HCI and RFCOMM.
in bluez utilities i can find that in files like l2test.c the calls are being made to socket functions.
But i m unable to find out exactly how the other side i mean the kernel handles the socket calls.
If u can provide a sample code just expalining the socket concept i  would be grateful to u.

Regards
vaishali


On Tue, 05 Apr 2005 Marcel Holtmann wrote :
>Hi,
>
> > I have a small problem in understanding the blueZ source code for
> > kernel 2.6.11.I am unable to find out exactly how the kernel
> > implementations of the l2cap layer,hcilayer and rfcomm layer are
> > interacting amongst themselves ?As well as how they interact with the
> > user space libraries?
> >
> > I have seen some functions in l2cap.c calling functions from
> > hci_core.c which have been put as EXPORT_SYMBOL() in hci_core.c.
> > Is it the way they are communicating or am i missing something?
>
>the module interaction is done by the exported symbols as you already
>realized. The upper layer modules like RFCOMM, BNEP etc. are using the
>L2CAP socket interface inside the kernel. All userspace tools are using
>the ioctls and the socket interfaces.
>
>Regards
>
>Marcel
>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users

[-- Attachment #2: Type: text/html, Size: 2510 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-14 10:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-14 10:29 [Bluez-users] Exactly how the sockets are being used in between the user space and kernel? vaishali  paisal
2005-04-14 10:38 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox