[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] relationship between ppp line discipline and bt driver??



i have a question of very basic problem....
i can't understand ppp line discipline and bt driver...

would anyone tell me what the line discipline is and how 
it works with bt driver exactly?? 

i have found some document but i can't apply and understand
the theory with this stack.

and as the figure in bluetooth.c 


  user app (pppd)
       / \
-------| |------------------
       \ / ttyBT0
   --------------
   | tty | ldisc-> PPP ldisc  
-----------------------------------------------
   | tty driver | (bluetooth driver)
   -------------
   |            | <-------        
   |  BT STACK  | <-----  |            ADDED
   |            | <---  | | 
   -------------      | | |
   |   ttyS0    |     V V V
   |       ldisc->  BT ldisc 
-----------------------------------------------
   | tty driver | (serial driver)
   -------------
        / \
--------| |------------------
        \ /
       UART

how is PPP ldisc applied to ttyBT0??
how is BT ldisc made and applied to ttyS0 also??

some general tty functions are defined in bluetooth.c
/**********************************/
/*STACK TOP (TTY DRIVER FUNCIOTNS)*/
/**********************************/
bt_open
bt_close
bt_ioctl
...
...

other functions defined also, called as "line discipline"
/**********************************/
/*STACK BOTTOM (LINE DISCIPLINE)*/
/**********************************/
bt_tty_open
bt_tty_close
bt_tty_ioctl
...
...
 

is it right that the top functions are used to control ttyBT
and the bottom one used to control ttyS0??

if right.... the bottom fuctions seem to work noting...
is it possible to delete the ttyBT and just use ttySx 
applying bt ldisc ???? 

@xxxxxxx. 
so many questions... 
BUT....

Please help me.... 

From Boyoun Na, Korea


- To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in the body of a message to majordomo@xxxxxxx.com