[CRIU] Re: [PATCH 3/4] eventfd: Add checkpoint/restore support

Pavel Emelyanov xemul at parallels.com
Tue Apr 24 09:58:18 EDT 2012


> +int dump_one_eventfd(int lfd, u32 id, const struct fd_parms *p)
> +{
> +	int image_fd = fdset_fd(glob_fdset, CR_FD_EVENTFD);
> +	struct eventfd_file_entry efe;
> +
> +	efe.id		= id;
> +	efe.flags	= p->flags;
> +	efe.fown	= p->fown;
> +
> +	if (ioctl(lfd, EFD_RAW_COUNTER, &efe.counter)) {
> +		pr_perror("Failed to retrieve eventfd counter on %d", lfd);
> +		return -1;
> +	}

Flags are missing. I mean the kernel's eventfd_ctx->flags bits.

> +	pr_info_eventfd("Dumping: ", &efe);
> +	if (write_img(image_fd, &efe))
> +		return -1;
> +
> +	return 0;
> +}


More information about the CRIU mailing list