* scsi_dev_init who is calling & where its defined?
@ 2001-12-03 10:44 Kousalya K
2001-12-04 17:11 ` rddunlap
0 siblings, 1 reply; 4+ messages in thread
From: Kousalya K @ 2001-12-03 10:44 UTC (permalink / raw)
To: linux-kernel; +Cc: kkasinat, sagundu
Hi all,
I'm trying to find out how linux kernel calls scsi_dev_init function
after kernel image is loaded.
I got information from web that , the sequence is,
"init() will call do_basic_setup() which inturn will call
device_setup()-> scsi_dev_init()->scsi_init()"
/* init() and device_setup() are definied in main.c */
But I'm not able to find out the function call for device_setup()
(defined in /usr/src/linux-2.4.2/drivers/char/pcmcia/serial_ cb.c)
function from do_basic_setup() function.
device_setup function is not at all calling any scsi related functions.
Could anyone please tell me the flow of how scsi_dev_init is called,
which inturn call what are all the functions?
Could you please provide the the location of the file where the
scsi_dev_init and scsi_init function is defined?
/* In linux-2.4.9 kernel, I'm not able to find out function
device_setup and also the file serial_cb.c
Any ideas? */
Thanks ,
Kousalya
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scsi_dev_init who is calling & where its defined?
2001-12-03 10:44 scsi_dev_init who is calling & where its defined? Kousalya K
@ 2001-12-04 17:11 ` rddunlap
2001-12-30 9:05 ` Any idea about watchdog timer in linux Kousalya K
0 siblings, 1 reply; 4+ messages in thread
From: rddunlap @ 2001-12-04 17:11 UTC (permalink / raw)
To: Kousalya K; +Cc: linux-kernel, sagundu
On Mon, 3 Dec 2001, Kousalya K wrote:
| Hi all,
|
| I'm trying to find out how linux kernel calls scsi_dev_init function
| after kernel image is loaded.
| I got information from web that , the sequence is,
What web page/URL? What Linux kernel version is it for?
I'm just guessing that it's out of date.
| "init() will call do_basic_setup() which inturn will call
| device_setup()-> scsi_dev_init()->scsi_init()"
|
| /* init() and device_setup() are definied in main.c */
init() calls do_basic_setup(), which calls do_initcalls(),
which calls all module_init() functions for "modules"
that are built into the kernel, including scsi_init() if
SCSI is built into the kernel (instead of being a loadable
module).
| But I'm not able to find out the function call for device_setup()
| (defined in /usr/src/linux-2.4.2/drivers/char/pcmcia/serial_ cb.c)
| function from do_basic_setup() function.
|
| device_setup function is not at all calling any scsi related functions.
Yes, there are some (other) device_setup() functions: pcmcia serial
and wanrouter, but not in scsi.
| Could anyone please tell me the flow of how scsi_dev_init is called,
| which inturn call what are all the functions?
Above, except omitting "scsi_dev_init".
| Could you please provide the the location of the file where the
| scsi_dev_init and scsi_init function is defined?
scsi_dev_init() doesn't seem to exist (in 2.4.16).
scsi_init() is in linux/drivers/scsi/scsi.c .
| /* In linux-2.4.9 kernel, I'm not able to find out function
| device_setup and also the file serial_cb.c
| Any ideas? */
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Any idea about watchdog timer in linux
2001-12-04 17:11 ` rddunlap
@ 2001-12-30 9:05 ` Kousalya K
2001-12-30 10:11 ` george anzinger
0 siblings, 1 reply; 4+ messages in thread
From: Kousalya K @ 2001-12-30 9:05 UTC (permalink / raw)
To: rddunlap; +Cc: linux-kernel
Hi all,
I wanted to call a timer function to get current time within kernel space. I
don't want any function call to do this.
Any idea ? In AIX we have watchdog stucture and w_stop, w_start, w_init
functions are there to stop, initiate and start the watchdog timer.
Anything like that is available in linux?
TIA,
Kousalya.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Any idea about watchdog timer in linux
2001-12-30 9:05 ` Any idea about watchdog timer in linux Kousalya K
@ 2001-12-30 10:11 ` george anzinger
0 siblings, 0 replies; 4+ messages in thread
From: george anzinger @ 2001-12-30 10:11 UTC (permalink / raw)
To: Kousalya K; +Cc: rddunlap, linux-kernel
Kousalya K wrote:
>
> Hi all,
>
> I wanted to call a timer function to get current time within kernel space. I
> don't want any function call to do this.
> Any idea ? In AIX we have watchdog stucture and w_stop, w_start, w_init
> functions are there to stop, initiate and start the watchdog timer.
> Anything like that is available in linux?
>
I think you are after the add_timer() del_timer_sync() stuff. These
timers are in units of HZ and cause a function to be called when they
expire. Most of them are deleted prior to expire time.
--
George george@mvista.com
High-res-timers: http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-12-30 10:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-03 10:44 scsi_dev_init who is calling & where its defined? Kousalya K
2001-12-04 17:11 ` rddunlap
2001-12-30 9:05 ` Any idea about watchdog timer in linux Kousalya K
2001-12-30 10:11 ` george anzinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox