Date: Thu, 28 Jun 2001 12:03:03 -0600 From: Drew Eckhardt <drew@PoohSticks.ORG> To: "Eugene L. Vorokov" <vel@bugz.infotecs.ru> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: allocating user space memory from kernel mode Message-ID: <200106281803.f5SI33T05601@revolt.poohsticks.org> In-Reply-To: Your message of "Thu, 28 Jun 2001 19:57:55 %2B0400." <200106281557.f5SFvue68254@bugz.infotecs.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200106281557.f5SFvue68254@bugz.infotecs.ru>, vel@bugz.infotecs.ru w rites: >Hello, > >is it possible to allocate and then maybe free memory in user space >from kernel mode, if I have struct proc of the process that memory should >belong to ? Yes. >What is the easiest and safest method of doing this ? Probably vm_mmap with the MAP_ANON flag and without MAP_FIXED. >I have seen some example that uses obreak(), but that seems very tricky >and suspicious ... I don't really understand what obreak() really does >and how to use it ... I wouldn't want to confuse the user land memory allocators by changing heap size. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106281803.f5SI33T05601>