[CRIU] [PATCH 8/8] parasite: unmap itself

Pavel Emelyanov xemul at parallels.com
Fri Sep 13 06:22:01 EDT 2013


> @@ -478,6 +478,16 @@ out:
>  	return 0;
>  }
>  
> +static noinline int parasite_unmap(void *data)

Function name intersects with criu's one.

> +{
> +	struct parasite_unmap_args *args = data;
> +
> +	sys_munmap(args->parasite_start, args->parasite_len);
> +
> +	BUG();
> +	return -1;
> +}
> +
>  static noinline __used int parasite_init_daemon(void *data)
>  {
>  	struct parasite_init_args *args = data;
> @@ -523,6 +533,8 @@ int __used parasite_service(unsigned int cmd, void *args)
>  		return dump_thread(args);
>  	case PARASITE_CMD_INIT_DAEMON:
>  		return parasite_init_daemon(args);
> +	case PARASITE_CMD_UNMAP:
> +		return parasite_unmap(args);
>  	}
>  
>  	pr_err("Unknown command to parasite: %d\n", cmd);
> 




More information about the CRIU mailing list