All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about copy_from/copy_to
@ 2002-11-27 20:26 Linux Geek
  2002-11-27 20:52 ` Richard B. Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Linux Geek @ 2002-11-27 20:26 UTC (permalink / raw)
  To: linux-kernel

I'm trying to write a device driver (module) for one of my customers and 
have the following problem.

kernel veraion 2.4.18...

Memory is allocated (kmalloc) in the "open" call.

The above memory is used in copy_from/to in the "ioctl" (and possibly 
the read/write) call.

I understand that the copy_from/to may wait for pages to be swapped in, 
If the waiting process is killed at this point, is it safe to free the 
memory in the "close/release" call? If not, when is it safe to call  kfree?


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

end of thread, other threads:[~2002-11-27 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-27 20:26 Question about copy_from/copy_to Linux Geek
2002-11-27 20:52 ` Richard B. Johnson
2002-11-27 21:13   ` Linux Geek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.