Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-devel] loading of hci_uart.ko
@ 2007-01-19 19:04 Choi Sonim
  2007-01-19 19:34 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Choi Sonim @ 2007-01-19 19:04 UTC (permalink / raw)
  To: BlueZ development

hi all,

I want to ask.
when I do "hciattach /dev/ttyS0 any", somehow the needed module
hci_uart.ko is loaded.
I looked in hciattach.c but I do not see how is it done.
can u please help me here ?

thank you very much all
choi.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] loading of hci_uart.ko
  2007-01-19 19:04 [Bluez-devel] loading of hci_uart.ko Choi Sonim
@ 2007-01-19 19:34 ` Marcel Holtmann
  2007-01-29  9:57   ` Choi Sonim
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2007-01-19 19:34 UTC (permalink / raw)
  To: BlueZ development

Hi Choi,

> I want to ask.
> when I do "hciattach /dev/ttyS0 any", somehow the needed module
> hci_uart.ko is loaded.
> I looked in hciattach.c but I do not see how is it done.
> can u please help me here ?

# modinfo hci_uart
alias:          tty-ldisc-15

It tells the kernel to load this module if any application request the
line discipline 15.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] loading of hci_uart.ko
  2007-01-19 19:34 ` Marcel Holtmann
@ 2007-01-29  9:57   ` Choi Sonim
  2007-01-29 10:05     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Choi Sonim @ 2007-01-29  9:57 UTC (permalink / raw)
  To: BlueZ development, Marcel Holtmann

Hi Marcel,

On 1/19/07, Marcel Holtmann <marcel@holtmann.org> wrote:
> > when I do "hciattach /dev/ttyS0 any", somehow the needed module
> > hci_uart.ko is loaded.
> > I looked in hciattach.c but I do not see how is it done ?
>
> # modinfo hci_uart
> alias:          tty-ldisc-15
>
> It tells the kernel to load this module if any application request the
> line discipline 15.

can you please elaborate on this ? when the app request the HCI line
discipline, how does the kernel knows it need to look for alias tty-ldisc-15 ?
does it then run modprobe ?
what code is responsible for that ?

thank you very much for the help
choi
>
> Regards
>
> Marcel
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

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

* Re: [Bluez-devel] loading of hci_uart.ko
  2007-01-29  9:57   ` Choi Sonim
@ 2007-01-29 10:05     ` Marcel Holtmann
  2007-01-29 10:42       ` Choi Sonim
  0 siblings, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2007-01-29 10:05 UTC (permalink / raw)
  To: Choi Sonim; +Cc: BlueZ development

Hi Choi,

> > > when I do "hciattach /dev/ttyS0 any", somehow the needed module
> > > hci_uart.ko is loaded.
> > > I looked in hciattach.c but I do not see how is it done ?
> >
> > # modinfo hci_uart
> > alias:          tty-ldisc-15
> >
> > It tells the kernel to load this module if any application request the
> > line discipline 15.
> 
> can you please elaborate on this ? when the app request the HCI line
> discipline, how does the kernel knows it need to look for alias tty-ldisc-15 ?
> does it then run modprobe ?
> what code is responsible for that ?

the kernel actually doesn't care what's the module name of module
providing the line discipline 15. It simply requests the loading of the
module and the userspace (insmod/modprobe) has to resolve this.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] loading of hci_uart.ko
  2007-01-29 10:05     ` Marcel Holtmann
@ 2007-01-29 10:42       ` Choi Sonim
  0 siblings, 0 replies; 5+ messages in thread
From: Choi Sonim @ 2007-01-29 10:42 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ development

On 1/29/07, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Choi,
>
> > > > when I do "hciattach /dev/ttyS0 any", somehow the needed module
> > > > hci_uart.ko is loaded.
> > > > I looked in hciattach.c but I do not see how is it done ?
> > >
> > > # modinfo hci_uart
> > > alias:          tty-ldisc-15
> > >
> > > It tells the kernel to load this module if any application request the
> > > line discipline 15.
> >
> > can you please elaborate on this ? when the app request the HCI line
> > discipline, how does the kernel knows it need to look for alias tty-ldisc-15 ?
> > does it then run modprobe ?
> > what code is responsible for that ?
>
> the kernel actually doesn't care what's the module name of module
> providing the line discipline 15. It simply requests the loading of the
> module and the userspace (insmod/modprobe) has to resolve this.

thank you very much
choi

>
> Regards
>
> Marcel
>
>
>

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

end of thread, other threads:[~2007-01-29 10:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19 19:04 [Bluez-devel] loading of hci_uart.ko Choi Sonim
2007-01-19 19:34 ` Marcel Holtmann
2007-01-29  9:57   ` Choi Sonim
2007-01-29 10:05     ` Marcel Holtmann
2007-01-29 10:42       ` Choi Sonim

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