Re:

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

 



Hi,

On 10/15/2012 11:24 AM, Niroj Pokhrel wrote:
> Hi,
> I'm new to linux and kernel . I'm ongoing with the linux device drivers.
> I've followed the the book LDD but i'm lost about how to call my
> driver's specific method from the user space.
> Eg: if have developed a character device and inserted the module then
> how can i make sure that when I read or write that it implement the
> functions via the methods i have implemented in my module.

the most easy way would be to put some printk output in your read/write 
functions of your driver. So with cat/echo from userspace you should be 
able to verify your implementation.

Regards,
Matthias

>
> --
> Niroj Pokhrel
> NIT Jamshedpur,
> B.Tech,Electronics and Communication
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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