[MPlayer-dev-eng] [PATCH] Frame stepping (i.e. seeking while paused)

Jan Knutar jknutar at nic.fi
Thu Jul 8 22:48:08 CEST 2004


> In theory it should work. mmap on /proc/[pid]/mem gives you direct
> access to another process's memory space, assuming your have
> permissions to open it. Since it's the same pages in physical memory,
> locking them from another process should still have the desired
> effect. Of course this is something of a hack and the kernel might not
> behave right, so who knows... You'll have to RTFS the kernel or try it
> to know for sure. :)

I was told to "forget about it" when I asked some people who know about 
the Linux kernel internals ;-) Although, a wrapper which does 
mlockall() followed by an exec would work. Not inherited through forks 
though.




More information about the MPlayer-dev-eng mailing list