Re: my driver is dropping characters

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

 



your first problem is you only have a 1 char buffer, so until you fix
that, the rest has no chance of working.

>> bond_buffer = kmalloc(1, GFP_KERNEL);

In 100% seriousness, you need to learn to program in user space before
you delve into the kernel.  The kernel is a very, very complex
environment.  Allocating a buffer of the right size is about as basic
as it gets in the kernel.

Stealing someone's analogy, it's like race car mechanics discussing
the finer points of setting up the fuel injection system and you're
asking "What is fuel injection anyway?"

Or in school terms, the kernel is like graduate studies and you're
asking freshman questions.

Greg

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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