lkml.org 
[lkml]   [2006]   [Mar]   [20]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 20 Mar 2006 11:58:26 +0530
From"yogeshwar sonawane" <>
Subjectwriting to a device through driver entrypoint or directly from user space after mapping it
Hi all,

If I want to write to a register of a PCI device which is in BAR
region, there are two ways:-
1) inside write() entrypoint of my driver, i can write to that
particular register.
2) if i have mapped my BAR region to user space, then writing to the
required register directly from user space.

So is there any difference in performance or time required to write to
a device from write() entrypoint of a driver or mapping a BAR region
to user space & then writing to it from user space?

are there any advantages / disadvantages ?

If i am wrong, correct me please.
Thanks in advance.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-20 07:30    [from the cache]
©2003-2008