[PATCH 05/11] RISC-V: drivers/iommu/riscv: Add sysfs interface
Krzysztof Kozlowski
krzk at kernel.org
Thu Jul 20 14:37:50 PDT 2023
On 20/07/2023 20:30, Tomasz Jeznach wrote:
u.h"
>>> +
>>> +#define sysfs_dev_to_iommu(dev) \
>>> + container_of(dev_get_drvdata(dev), struct riscv_iommu_device, iommu)
>>> +
>>> +static ssize_t address_show(struct device *dev,
>>> + struct device_attribute *attr, char *buf)
>>
>>
>> Where is the sysfs ABI documented?
>>
>
> Sysfs for now is used only to expose selected IOMMU memory mapped
> registers, with complete documentation in the RISC-V IOMMU Arch Spec
> [1], and some comments in iommu-bits.h file.
> LMK If it would be better to put a dedicated file documenting those
> with the patch itself.
I meant, you created new sysfs interface. Maybe I missed something in
the patchset, but each new sysfs interface required documenting in
Documentation/ABI/.
Best regards,
Krzysztof
More information about the linux-riscv
mailing list