Re: [PATCH v3 bpf-next 3/4] bpf: Add kernel module with user mode driver that populates bpffs.

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

 



On Fri, Jul 24, 2020 at 04:53:47PM +0200, Daniel Borkmann wrote:
> 
> static const struct bpf_preload_umd_ops umd_ops = {
>         .preload        = do_preload,
>         .finish         = do_finish,
>         .owner          = THIS_MODULE,
> };

Thanks for the suggestion. It helped to get rid of ugly #if IS_BUILTIN too.
I'm kinda surprised that THIS_MODULE works for builtin too. Nice.



[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