Re: [PATCH bpf-next v3 01/21] bpf: implement an interface to register bpf_iter targets

2020-05-08 Thread Andrii Nakryiko
On Wed, May 6, 2020 at 10:39 PM Yonghong Song wrote: > > The target can call bpf_iter_reg_target() to register itself. > The needed information: > target: target name > seq_ops: the seq_file operations for the target > init_seq_private target callback to initialize seq_pr

[PATCH bpf-next v3 01/21] bpf: implement an interface to register bpf_iter targets

2020-05-06 Thread Yonghong Song
The target can call bpf_iter_reg_target() to register itself. The needed information: target: target name seq_ops: the seq_file operations for the target init_seq_private target callback to initialize seq_priv during file open fini_seq_private target callback to clean u