Re: Frozen Maps

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

 



On 8/27/20 9:59 AM, Abhishek Vijeev wrote:
> Hi,
> 
> From a user-space process, given a BPF map file descriptor, is it
> possible to determine whether the map is frozen (with BPF_MAP_FREEZE)?
> 
> As far as I'm aware, the only way to retrieve information about BPF
> maps from file descriptors is to use BPF_OBJ_GET_INFO_BY_FD. However,
> I do not see a field which tells me whether a map is frozen (or not)
> in struct bpf_map_info
> (https://github.com/torvalds/linux/blob/master/include/uapi/linux/bpf.h#L4035).
> Kindly correct me if I'm wrong.
> 
> Thank you,
> Abhishek Vijeev.
> 

fdinfo for the file has the frozen status (cat /proc/$pid/fdinfo/$fd)



[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