Extending MADV_PROTECT

Konstantin Belousov kostikbel at gmail.com
Thu May 9 12:31:51 UTC 2013


On Thu, May 09, 2013 at 08:14:52AM -0400, John Baldwin wrote:
> > You mentioned a priority, and I think ability to pass a structure to the
> > sub-function of the syscall is better then carving bits in the int argument,
> > or introducing a new syscall.
> 
> I think the priority would still be a pprotect operation.  In some ways it would
> be nice to be able to do ioctls on processes and maybe this could be structured
> similarly?
> 
> int procctl(int pid, unsigned long cmd, ...)
> 
> (So it's basically ioctl but with the 'fd' replaced with 'pid'.  This would also
> mean that in the future with Robert's pdfork() you could perhaps have ioctl on
> a process fd just foward the request to procctl).

Yes, this is exactly what I mean.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20130509/040059e5/attachment.sig>


More information about the freebsd-arch mailing list