Date: Wed, 8 Aug 2001 14:33:05 +1000 (EST) From: gjohnson@research.canon.com.au (Greg Johnson) To: freebsd-questions@FreeBSD.ORG Subject: tsleep and friends Message-ID: <20010808043305.6118F37556@zapff.research.canon.com.au>
next in thread | raw e-mail | index | archive | help
Hi people, I am writing a device driver module and am having some trouble with tsleep/asleep. Our device has some amount of memory, and the charcter device driver allows writing to this memory. I want to block the writing process until space is available to write to. I have tried calling tsleep (9) and this seem to continually return 0 immediately. I have tried calling asleep/await and this will block, but if I specify a non-zero timout value, this seems to be ignored. Also, when the calling process is blocked, I cannot kill the process. Any help appreciated. Thank you. Greg. -- +------------------------------------------------------+ | Do you want to know more? www.geocities.com/worfsom/ | | ..ooOO Greg Johnson OOoo.. | | HW/SW Engineer gjohnson@research.canon.com.au | | Canon Information Systems Research Australia (CISRA) | | 1 Thomas Holt Dr., North Ryde, NSW, 2113, Australia | | "I FLEXed my BISON and it went YACC!" - me. | +------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010808043305.6118F37556>