mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [Q] How can I transfer data from hard disk to PCI device's memory
@ 2003-08-07  5:45 Cho, joon-woo
  2003-08-07 12:05 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Cho, joon-woo @ 2003-08-07  5:45 UTC (permalink / raw)
  To: linux-kernel

Hello.

I want to transfer data 'directly' from hard disk to some PCI device which
has memory

with the helpf of kernel(file system, device driver).

In above sentence 'directly' means that data does not go through main memory
of host.


So I am analyzing kernel code, but I am so confused because of memory system

complexity (page, buffer, ... ).

I find buffer head structure(struct buffer_head) has b_data pointer
variable.

I think kernel transfer data from HDD to this pointer variable.

Can I map this pointer variable(b_data) to PCI device's memory?


I am very confused because this part is highly related with complex memory
system

(page & buffer).

Please give me some hint. Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Q] How can I transfer data from hard disk to PCI device's memory
  2003-08-07  5:45 [Q] How can I transfer data from hard disk to PCI device's memory Cho, joon-woo
@ 2003-08-07 12:05 ` Alan Cox
  2003-08-07 12:57   ` [Q] How can I transfer data from hard disk to PCI device'smemory Cho, joon-woo
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2003-08-07 12:05 UTC (permalink / raw)
  To: Cho, joon-woo; +Cc: Linux Kernel Mailing List

On Iau, 2003-08-07 at 06:45, Cho, joon-woo wrote:
> Hello.
> 
> I want to transfer data 'directly' from hard disk to some PCI device which
> has memory
> 
> with the helpf of kernel(file system, device driver).

The kernel doesn;t currently support this. The O_DIRECT I/O handling
needs to know about stuff like page reference counts that PCI space
doesn't have lots of older (and some current) hardware has real problems
with PCI PCI transfers.


So its a non trivial project, although doable


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Q] How can I transfer data from hard disk to PCI device'smemory
  2003-08-07 12:05 ` Alan Cox
@ 2003-08-07 12:57   ` Cho, joon-woo
  0 siblings, 0 replies; 3+ messages in thread
From: Cho, joon-woo @ 2003-08-07 12:57 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Thank you for your reply, and I am very pleasant to talk with you. ^^

But english is not mother tongue, so I am little confused about your
sentence.

> The O_DIRECT I/O handling
> needs to know about stuff like page reference counts that PCI space
> doesn't have lots of older (and some current) hardware has real problems
> with PCI PCI transfers.

At above sentence, you mean that

'To handle O_DIRECT I/O, stuff like page reference is needed.

But some HW(expecially old HW) doesn't have PCI space,

so that it needs much additional work to add a PCI-PCI transferring.'

Do I understand right?


Please reply, thanks.



> So its a non trivial project, although doable




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-08-07 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-07  5:45 [Q] How can I transfer data from hard disk to PCI device's memory Cho, joon-woo
2003-08-07 12:05 ` Alan Cox
2003-08-07 12:57   ` [Q] How can I transfer data from hard disk to PCI device'smemory Cho, joon-woo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®