Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690692

Re: [PATCH 09/15] mm/hmm/devmem: device memory hotplug using ZONE_DEVICE v6

From Evgeny Baskakov <ebaskakov@nvidia.com>
Newsgroups linux.kernel
Subject Re: [PATCH 09/15] mm/hmm/devmem: device memory hotplug using ZONE_DEVICE v6
Date 2017-07-18 23:50 +0200
Message-ID <u4Ixs-7K6-31@gated-at.bofh.it> (permalink)
References <tXpzz-NY-5@gated-at.bofh.it> <tXpzB-NY-43@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 6/28/17 11:00 AM, Jérôme Glisse wrote:

> +/*
> + * struct hmm_devmem_ops - callback for ZONE_DEVICE memory events
> + *
> + * @free: call when refcount on page reach 1 and thus is no longer use
> + * @fault: call when there is a page fault to unaddressable memory
> + */
> +struct hmm_devmem_ops {
> +	void (*free)(struct hmm_devmem *devmem, struct page *page);
> +	int (*fault)(struct hmm_devmem *devmem,
> +		     struct vm_area_struct *vma,
> +		     unsigned long addr,
> +		     struct page *page,
> +		     unsigned int flags,
> +		     pmd_t *pmdp);
> +};
>

Hi Jerome,

As discussed, could you please add detailed documentation for these 
callbacks?

Specifically, for the 'fault' callback it is important to clarify the 
meaning of each of its parameters and the return value (which error 
codes are expected to be returned from it).

Thanks!

-- 
Evgeny Baskakov
NVIDIA

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 09/15] mm/hmm/devmem: device memory hotplug using  ZONE_DEVICE v6 Evgeny Baskakov <ebaskakov@nvidia.com> - 2017-07-18 23:50 +0200

csiph-web