netdev
[Top] [All Lists]

why sl_ioctl() called when ioctl on ttyS is done?

To: netdev@xxxxxxxxxxx
Subject: why sl_ioctl() called when ioctl on ttyS is done?
From: Nagaraj Y S <nagaraj@xxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Feb 2002 14:13:17 +0530
Organization: Global Edge Software Limited
Reply-to: nagaraj@xxxxxxxxxxxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
Hi all,

I am trying to trace the series of operation in setting up slip network interface.

I tried to insert slip (modified, with 15 as the line disc num) as a insertable module and then did a cutomised slattach for /dev/ttyS1, which calls ioctl with TIOCSETD and with 15 as disc num.

But the flow seems to enter sl_iotcl also, which I think will be called from core
net device's do_ioctl function ptr only.

The calling sequence is this as I observed.
my iotcl syscall -> tiocsetd() in tty_io.c -> tty_set_ldisc() -> tty->driver.set_ldisc()
Can anybody tell me where is this case the set_ldisc() function defined?
Thanks in advance,
Nagaraj.

[I could trace this with lot of printk's in all the functions of modified slip.c]

-- 
--------------------------------------
God made machine language; all the rest is the work of man.
--------------------------------------/usr/games/fortune
 
<Prev in Thread] Current Thread [Next in Thread>
  • why sl_ioctl() called when ioctl on ttyS is done?, Nagaraj Y S <=