2001-04-24 08:55:39

by Rajeev Nigam

[permalink] [raw]
Subject: Delay Function

What function i have to use to put a delay in a driver at kernel mode
between reading from and writing to com port.

Looking forward for ur help.

Thanx & Regards
Rajeev Nigam


2001-04-24 09:06:10

by alad

[permalink] [raw]
Subject: Re: Delay Function








Rajeev Nigam <[email protected]> on 04/24/2001 03:29:04 PM

To: [email protected]
cc: (bcc: Amol Lad/HSS)

Subject: Delay Function




What function i have to use to put a delay in a driver at kernel mode
between reading from and writing to com port.

Looking forward for ur help.

Thanx & Regards
Rajeev Nigam

2001-04-24 09:09:40

by alad

[permalink] [raw]
Subject: Re: Delay Function



It may be possible that this is not the good choice...
but u can try ... schedule_timeout(timeout) function.... see kernel/sched.c for
more details about this function

Amol





Rajeev Nigam <[email protected]> on 04/24/2001 03:29:04 PM

To: [email protected]
cc: (bcc: Amol Lad/HSS)

Subject: Delay Function




What function i have to use to put a delay in a driver at kernel mode
between reading from and writing to com port.

Looking forward for ur help.

Thanx & Regards
Rajeev Nigam

2001-04-24 13:56:39

by Rajeev Nigam

[permalink] [raw]
Subject: RE: Delay Function

There is udelay(usecs) function which has told by Ofer Fryman one of the
member of mailing list, not delay(usecs) and its working properly.

Thanx to u all for ur cooperation.

Regards,
Rajeev

-----Original Message-----
From: Hubertus Franke [mailto:[email protected]]
Sent: Tuesday, April 24, 2001 7:04 PM
To: [email protected]
Cc: Rajeev Nigam
Subject: Re: Delay Function



you might want to use delay(usecs)..

Hubertus Franke
Enterprise Linux Group (Mgr), Linux Technology Center (Member Scalability)
, OS-PIC (Chair)
email: [email protected]
(w) 914-945-2003 (fax) 914-945-4425 TL: 862-2003



[email protected]@vger.kernel.org on 04/24/2001 04:58:19 AM

Sent by: [email protected]


To: Rajeev Nigam <[email protected]>
cc: [email protected]
Subject: Re: Delay Function





It may be possible that this is not the good choice...
but u can try ... schedule_timeout(timeout) function.... see kernel/sched.c
for
more details about this function

Amol





Rajeev Nigam <[email protected]> on 04/24/2001 03:29:04 PM

To: [email protected]
cc: (bcc: Amol Lad/HSS)

Subject: Delay Function




What function i have to use to put a delay in a driver at kernel mode
between reading from and writing to com port.

Looking forward for ur help.

Thanx & Regards
Rajeev Nigam