lkml.org 
[lkml]   [2021]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC 04/20] iommu: Add iommu_device_get_info interface
From
Date
Hi Jason,

On 9/22/21 12:19 AM, Jason Gunthorpe wrote:
> On Sun, Sep 19, 2021 at 02:38:32PM +0800, Liu Yi L wrote:
>> From: Lu Baolu <baolu.lu@linux.intel.com>
>>
>> This provides an interface for upper layers to get the per-device iommu
>> attributes.
>>
>> int iommu_device_get_info(struct device *dev,
>> enum iommu_devattr attr, void *data);
>
> Can't we use properly typed ops and functions here instead of a void
> *data?
>
> get_snoop()
> get_page_size()
> get_addr_width()

Yeah! Above are more friendly to the upper layer callers.

>
> ?
>
> Jason
>

Best regards,
baolu

\
 
 \ /
  Last update: 2021-09-22 04:36    [W:0.193 / U:12.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site