Copy from one process to another (fwd)

Sam Roberts (sam@cogent.ca)
Tue, 4 May 1999 12:26:51 -0400 (edt)


I have the same question/problem as this guy, and totally don't
understand the /proc filesystem comment.

Any ideas? This would be a **huge** performance boost for my module,
http://toronto.qenesis.com/Sam/srr.html

Peformance is dominated by the costs of the memory copies, for any
sizeable messages, and I could halve that cost, since the module
design is such that there is always a reader blocked and waiting
when the writer does the write.

Thanks,
Sam

--
Sam Roberts (sam@cogent.ca), Cogent Real-Time Systems (www.cogent.ca)
"News is very popular among its readers." - RFC 977 (NNTP)

---------- Forwarded message ---------- Date: Sun, 02 May 1999 15:04:48 -0400 From: Andrew Thomas <andrew@cogent.ca> To: sam@cogent.ca Subject: Copy from one process to another

This is a strange question/answer that might shed a tiny amount of light. I sure don't understand the connection.

>Hi, > > in my first kernel-related project, i want to copy data in the kernel from one >process to another. > > I have the start point/size of the user-level buffers, but i found no way to do a >_direct_ copy. > > The copy takes place in a write() call of a character device driver, the >source/size is the write buffer/size, the > destinition is a other process, currently blocking in its read method. > > Of course, i could do a kmalloc, copy to kernel, wake up the read, copy from the >kmalloc'd area, kfree the area, but ... > that is too much overhead. > > Any hints? > > Bye, > > Jürgen

Use the /Proc file system

Forum: The Linux Kernel Hackers' Guide Re: How can the kernel copy directly data from one process to another process? (Jürgen Zeller) Keywords: direct copy, user space, kernel space Date: Mon, 22 Jun 1998 16:15:21 GMT From: <marty@twsu.campus.mci.net>

The /proc file system uses a directory for each pid. Do a man 5 proc on linux machine to find out more? Bye, Marty.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/