Re: how to use the function copyout()
From: Scott Long (scottl_at_samsco.org)
Date: 07/26/05
- Previous message: Julian Elischer: "Re: how to use the function copyout()"
- In reply to: Kamal R. Prasad: "Re: how to use the function copyout()"
- Next in thread: Norbert Koch: "RE: how to use the function copyout()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 25 Jul 2005 17:13:40 -0600 To: kamalp@acm.org
Kamal R. Prasad wrote:
> Im not sure of the bug in your code, but you have got
> to assume that copyout() would fail if the user/kernel
> addr passed to it is not accessible.
>
> regards
> -kamal
>
The whole point of copyin and copyout is to deal with copying
to and from user virtual memory that might not be paged in at the
moment. Your statement thus makes little sense.
Scott
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
- Previous message: Julian Elischer: "Re: how to use the function copyout()"
- In reply to: Kamal R. Prasad: "Re: how to use the function copyout()"
- Next in thread: Norbert Koch: "RE: how to use the function copyout()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- 2.6.0-test9-mjb2: emulex driver link error
... : multiple definition of `copyout' ... ld: Warning: size of symbol
`copyout' changed from 95 in ... : multiple definition of `copyin' ... (Linux-Kernel) - Re: How to pin a userland page in memory(avoid copyin and copyout)
... > I am trying to explore the option avoiding copyin and copyout when mode>
switches from user to kernel and vice versa. ... Then just pass the addresses to the kernel
and the> data will be used directly from the userland page. ... I was working on pipe implementation
in BSD derivative of 4.10 branch and remember the same concept of pinning the user space buffer
for bypassing kernel buffer. ... (freebsd-hackers) - Re: How to pin a userland page in memory(avoid copyin and copyout)
... Then just pass the addresses to the kernel and the ... The only way Im aware
is to mmap() a file. ... > that happening on a given process due to the copyin
and copyout. ... (freebsd-hackers) - How to pin a userland page in memory(avoid copyin and copyout)
... I am trying to explore the option avoiding copyin and copyout when mode ...
Then just pass the addresses to the kernel and the ... want to understand how much performance
gain one can gain if I am able to ... (freebsd-hackers)