Re: character device driver reading only last character of buffer

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

 





On Sun, Sep 26, 2010 at 3:43 AM, Venkatram Tummala <venkatram867@xxxxxxxxx> wrote:

Do the following steps :

1) insmod <MODULE.ko>

2) cat /proc/devices |grep <DEVICENAME>     This will fetch you a number. Use it in step 3

3) mknod /dev/<DEVICENAME> c <Number from step 2> 0
In the above you  need to do chmod 666 /dev/<DEVICENAME>
otherwise only root will be able to read and write.
I was doing all this as a normal user.

4) echo  -n "whatever" > /dev/<DEVICENAME>

5) cat /dev/<DEVICENAME>


[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