Return-Path: Message-ID: <20050414102914.4371.qmail@webmail17.rediffmail.com> MIME-Version: 1.0 From: "vaishali paisal" To: bluez-users@lists.sourceforge.net Content-type: multipart/alternative; boundary="Next_1113474554---0-203.199.83.27-4369" Subject: [Bluez-users] Exactly how the sockets are being used in between the user space and kernel? Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: 14 Apr 2005 10:29:14 -0000 This is a multipart mime message --Next_1113474554---0-203.199.83.27-4369 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =A0Hello Marcel,=0AThanks for replying to my question.Can u please explain= me how the socket communication is going on between the user space and ker= nel space?=0AI can find out the code defining new address familiy AF_BLUETO= OTH.then new protocols for L2CAP,HCI and RFCOMM.=0Ain bluez utilities i can= find that in files like l2test.c the calls are being made to socket functi= ons.=0ABut i m unable to find out exactly how the other side i mean the ker= nel handles the socket calls.=0AIf u can provide a sample code just expalin= ing the socket concept i would be grateful to u.=0A=0ARegards=0Avaishali= =0A=0A=0AOn Tue, 05 Apr 2005 Marcel Holtmann wrote :=0A>Hi,=0A>=0A> > I hav= e a small problem in understanding the blueZ source code for=0A> > kernel 2= .6.11.I am unable to find out exactly how the kernel=0A> > implementations = of the l2cap layer,hcilayer and rfcomm layer are=0A> > interacting amongst = themselves ?As well as how they interact with the=0A> > user space librarie= s?=0A> >=0A> > I have seen some functions in l2cap.c calling functions from= =0A> > hci_core.c which have been put as EXPORT_SYMBOL() in hci_core.c.=0A>= > Is it the way they are communicating or am i missing something?=0A>=0A>t= he module interaction is done by the exported symbols as you already=0A>rea= lized. The upper layer modules like RFCOMM, BNEP etc. are using the=0A>L2CA= P socket interface inside the kernel. All userspace tools are using=0A>the = ioctls and the socket interfaces.=0A>=0A>Regards=0A>=0A>Marcel=0A>=0A>=0A>= =0A>=0A>-------------------------------------------------------=0A>SF email= is sponsored by - The IT Product Guide=0A>Read honest & candid reviews on = hundreds of IT Products from real users.=0A>Discover which products truly l= ive up to the hype. Start reading now.=0A>http://ads.osdn.com/?ad_id=3D6595= &alloc_id=3D14396&op=3Dclick=0A>___________________________________________= ____=0A>Bluez-users mailing list=0A>Bluez-users@lists.sourceforge.net=0A>ht= tps://lists.sourceforge.net/lists/listinfo/bluez-users=0A --Next_1113474554---0-203.199.83.27-4369 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0A  Hello Marcel,
=0AThanks for replying to my question.Can u p= lease explain me how the socket communication is going on between the user = space and kernel space?
=0AI can find out the code defining new address = familiy AF_BLUETOOTH.then new protocols for L2CAP,HCI and RFCOMM.
=0Ain = bluez utilities i can find that in files like l2test.c the calls are being = made to socket functions.
=0ABut i m unable to find out exactly how the = other side i mean the kernel handles the socket calls.
=0AIf u can provi= de a sample code just expalining the socket concept i  would be gratef= ul to u.
=0A
=0ARegards
=0Avaishali
=0A
=0A
=0AOn Tue, 05= Apr 2005 Marcel Holtmann wrote :
=0A>Hi,
=0A>
=0A> > = I have a small problem in understanding the blueZ source code for
=0A>= ; > kernel 2.6.11.I am unable to find out exactly how the kernel
=0A&= gt; > implementations of the l2cap layer,hcilayer and rfcomm layer are=0A> > interacting amongst themselves ?As well as how they interact= with the
=0A> > user space libraries?
=0A> >
=0A> = > I have seen some functions in l2cap.c calling functions from
=0A>= ; > hci_core.c which have been put as EXPORT_SYMBOL() in hci_core.c.
= =0A> > Is it the way they are communicating or am i missing something= ?
=0A>
=0A>the module interaction is done by the exported symbo= ls as you already
=0A>realized. The upper layer modules like RFCOMM, = BNEP etc. are using the
=0A>L2CAP socket interface inside the kernel.= All userspace tools are using
=0A>the ioctls and the socket interfac= es.
=0A>
=0A>Regards
=0A>
=0A>Marcel
=0A>
= =0A>
=0A>
=0A>
=0A>-----------------------------------= --------------------
=0A>SF email is sponsored by - The IT Product Gu= ide
=0A>Read honest & candid reviews on hundreds of IT Products f= rom real users.
=0A>Discover which products truly live up to the hype= . Start reading now.
=0A>http://ads.osdn.com/?ad_id=3D6595&alloc_= id=3D14396&op=3Dclick
=0A>_______________________________________= ________
=0A>Bluez-users mailing list
=0A>Bluez-users@lists.sou= rceforge.net
=0A>https://lists.sourceforge.net/lists/listinfo/bluez-u= sers
=0A=0A

=0A

=0A=0A --Next_1113474554---0-203.199.83.27-4369-- ------------------------------------------------------- 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