Re: char driver module prob.

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

 



> 
> hi all,
> 
> I had written a small character driver under kernel 2.4.20.
> For starters I had implemented it's read method only. This
> would put a constant string "hello" into the user-space
> buffer. The problem I'm seeing is that when i "cat" my device
> it does not print anything on the console (i.e cat and not the

This can be because whatever is printed on the console is 
overwritten by the shell prompt when the cat command returns.
Something similar happens if you run the following prog

int main() {
  printf("hello");
}

-Gopu
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


--
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