Niroj Pokhrel nirojpokhrel at gmail.com
Mon Oct 15 06:53:59 EDT 2012


Thank Matthias!!!
I have tried using printk . What I really want to do now is to implement
the methods I have written by calling from the user space. Like I want to
read or write to the character devices via  user space.

On Mon, Oct 15, 2012 at 3:49 PM, Matthias Brugger <
matthias.bgg at googlemail.com> wrote:

> 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 at kernelnewbies.**org <Kernelnewbies at kernelnewbies.org>
>> http://lists.kernelnewbies.**org/mailman/listinfo/**kernelnewbies<http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies>
>>
>>
>


-- 
Niroj Pokhrel
NIT Jamshedpur,
B.Tech,Electronics and Communication
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121015/def69e39/attachment.html 


More information about the Kernelnewbies mailing list