public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* allocating user-memory from kernel: do i use GFP_USER
@ 2004-10-04 11:59 Luke Kenneth Casson Leighton
  0 siblings, 0 replies; only message in thread
From: Luke Kenneth Casson Leighton @ 2004-10-04 11:59 UTC (permalink / raw)
  To: linux-kernel

hi, it occurred to me that instead of cut/paste all the sys_* functions
in fs/*.c for this proxyfs kernel module i am doing that i could
instead, if i could get hold of some user memory, call the sys_*
functions directly.

can i just do this:

	char __user *filename = kmalloc(strlen(kfilename)+1, GFP_USER);

and then this:

	sys_rename(filename, ...);

and expect it to work?

ta,

l.

-- 
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-10-04 11:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 11:59 allocating user-memory from kernel: do i use GFP_USER Luke Kenneth Casson Leighton

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