Re: Help with char device

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

 



On Sat, Jul 27, 2002 at 11:40:25AM -0600, Tom Bradley wrote:

> What am I doing wrong, or not doing at all?
> 
> 	ssize_t ret;
> 	struct semaphore sem;

You don't initialise your semaphore (read other code)

> 	if(count > strlen(my_buf))
> 		count = strlen(my_buf);

my_buf + 1

regards
john

-- 
"The new WinFix 4.3 is a very effective way to improve the reliability of
 Windows, because it makes Windows fault-tolerant and self-repairing. And
 WinFix is very safe, because it operates completely independent of Windows."
 	- Spam
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux