Re: [RFC bpf-next] Registering struct_ops types from modules.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 7, 2023 at 1:32 PM <thinker.li@xxxxxxxxx> wrote:
>
> From: Kui-Feng Lee <thinker.li@xxxxxxxxx>
>
> Resend to remove noise!
>
> Given the current constraints of the current implementation, struct_ops
> cannot be registered dynamically. This presents a significant limitation
> for modules like fuse-bpf, which seeks to implement a new struct_ops
> type. To address this issue, here it proposes the introduction of a new
> API. This API will enable the registering of new struct_ops types from
> modules.
>
> The following code is an example of how to implement a new struct_ops type
> in a module with the proposed API. It adds a new type bpf_testmod_ops in
> the bpf_testmod module. And, call register_bpf_struct_ops() and
> unregister_bpf_struct_ops() when init and exit the module.

register_bpf_struct_ops() api implementation is missing in the diff.





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux