On Tue, Mar 16, 2021 at 07:08:38PM +0200, Mihai Carabas wrote:
..snip..Why would it not be? Why constrain yourself to something that someone
We can only have a pvpanic-pci device. This is necessary in that case?+};A global capability for all devices? No, this needs to be a per-device
+static unsigned int capability = PVPANIC_PANICKED | PVPANIC_CRASH_LOADED;
+static unsigned int events;
+
+static ssize_t capability_show(struct device *dev,
+ struct device_attribute *attr, char *buf)
+{
+ return sysfs_emit(buf, "%x\n", capability);
attttribute as you are showing it to userspace as such.
will only have to fix sometime in the future?