Janek Hiis wrote:
>
> Hi,
>
> downloaded the cvs version but it din't compile on kernel 2.3.99-pre3
> so did a patch. I didn't know from which version on the
> struct inode doesn't have i_mmap so just put 2.3.99 there ...
> hope I got it right...
>
> RCS file: /cvsroot-freemware/freemware/kernel/host-linux.c,v
> retrieving revision 1.26
> diff -u -r1.26 host-linux.c
> --- kernel/host-linux.c 2000/02/01 00:24:19 1.26
> +++ kernel/host-linux.c 2000/03/25 20:22:50
> @@ -391,7 +391,11 @@
> case FMWTEARDOWN: // tear down VM environment
>
> // Do *not* free pages that are still mapped to user space!
> +#if LINUX_VERSION_CODE >= VERSION_CODE(2,3,99)
> + if (inode->i_data.i_mmap != NULL) {
> +#else
> if (inode->i_mmap != NULL) {
> +#endif
> printk(KERN_WARNING "freemware: guest memory is still mapped!\n");
> return -EBUSY;
> }
Thanks, I integrated this into my internal code. I plan to
update the CVS tree this week.
-Kevin