LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Copy/Paste algorithm or source code in linux (https://www.linuxquestions.org/questions/linux-kernel-70/copy-paste-algorithm-or-source-code-in-linux-749058/)

ankit.nsit 08-20-2009 11:44 AM

Copy/Paste algorithm or source code in linux
 
How does copy and paste works in linux.I want to know the algorithm or source code.I am not talking about the mouse button and all.
Can anyone help me by providing the source code and algorithm of cut/copy/paste taking place in kernel.

knudfl 08-20-2009 02:14 PM

Short : The kernel handles interaction between the OS and hardware.

Long definition: The kernel handles the basic functions of the
operating system: memory allocation, processallocation, device
input and output, etc.

And not copy, paste etc.
There is a command for copy ( cp) and move ( mv ).
The copy and paste functions, you ask about are functions in
the applications, you use. All that takes place in user space.

The source code : have a look in the application source.
.....
This tool will find all information : http://www.google.com/linux

.....

salasi 08-20-2009 02:49 PM

You have asked two questions on a very similar area (http://www.linuxquestions.org/questi...efined-749061/), and make a very similar error.


Quote:

Originally Posted by ankit.nsit (Post 3651088)
Can anyone help me by providing the source code and algorithm of cut/copy/paste taking place in kernel.

Given that it doesn't exist, it is a little difficult to satisfy this request; What makes you think that this takes place in the kernel? (It doesn't; Its not there.)

You should try, in particular, to understand pixellany's reply to your other post and its implications.

I suspect once the mods get wind of this 'almost the same post in two threads' they will close this one, given that the other one is probably more helpful to you in your attempt to reach a state of enlightenment the hard way.


All times are GMT -5. The time now is 10:45 AM.