Hello! > This patch adds a function to output the link status of the CXL1.1 device > when it is connected. > > In CXL1.1, the link status of the device is included in the RCRB mapped to > the memory mapped register area. The value of that register is outputted > to sysfs, and based on that, displays the link status information. I like using sysfs to access the RCRB, but since it is specific to Linux, you cannot do it in ls-caps.c (everything in this file is platform-independent). The right way is to extend libpci and its interface to platform-specific back-ends to provide this functionality. However, I am not sure that we should add special functions just for this purpose. I will think of something more general and let you know soon. Otherwise, please follow the coding style of the rest of the file. Martin