Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932224AbdCMWLZ (ORCPT ); Mon, 13 Mar 2017 18:11:25 -0400 Received: from hqemgate15.nvidia.com ([216.228.121.64]:14647 "EHLO hqemgate15.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753611AbdCMWLN (ORCPT ); Mon, 13 Mar 2017 18:11:13 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Mon, 13 Mar 2017 15:08:33 -0700 From: Krishna Reddy To: =?utf-8?B?SsOpcsO0bWUgR2xpc3Nl?= , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" CC: John Hubbard , Naoya Horiguchi , David Nellans , "Evgeny Baskakov" , Mark Hairgrove , Sherry Cheung , Subhash Gutti Subject: RE: [HMM v17 09/14] mm/hmm/mirror: mirror process address space on device with HMM helpers Thread-Topic: [HMM v17 09/14] mm/hmm/mirror: mirror process address space on device with HMM helpers Thread-Index: AQHSeOgRGGOw9dX9sUOuC18JP9oHYaGTmmWg Date: Mon, 13 Mar 2017 22:10:56 +0000 Message-ID: References: <1485557541-7806-1-git-send-email-jglisse@redhat.com> <1485557541-7806-10-git-send-email-jglisse@redhat.com> In-Reply-To: <1485557541-7806-10-git-send-email-jglisse@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.17.187.30] MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id v2DMBhUt023063 Content-Length: 644 Lines: 21 +/* + * struct hmm_mirror_ops - HMM mirror device operations callback + * + * @update: callback to update range on a device */ struct +hmm_mirror_ops { + /* update() - update virtual address range of memory + * + * @mirror: pointer to struct hmm_mirror + * @update: update's type (turn read only, unmap, ...) + * @start: virtual start address of the range to update + * @end: virtual end address of the range to update ....... + */ + void (*update)(struct hmm_mirror *mirror, + enum hmm_update action, + unsigned long start, + unsigned long end); +}; minor arg documentation issue. @update should be @action.