[lxc-devel] Understanding - LXCFS source code to add /sys/power/state as an entry in LXCFS

Souvik Datta sd.souvikdatta at gmail.com
Wed Jun 3 17:36:23 UTC 2020

I am trying to understand the source code of LXCFS. My final objective
is to add /sys/power/state file as an entry. I understand the changes
that need to be done in sysfs_fuse.c/h to support this.

To do this, first I am first trying to understand, how the sys entry -
"/sys/devices/system/cpu/online" has been added in the "target
directory - /var/lib/lxcfs" but I am not able to figure that out.

Can you please give me some pointers so that I can understand how this
is achieved?


More information about the lxc-devel mailing list