Home
last modified time | relevance | path

Searched refs:XEN_BUS_ID_SIZE (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/drivers/xen/xenbus/
Dxenbus.h39 #define XEN_BUS_ID_SIZE 20 macro
44 int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename);
Dxenbus_probe_backend.c59 static int backend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in backend_bus_id() argument
89 if (snprintf(bus_id, XEN_BUS_ID_SIZE, "%.*s-%i-%s", in backend_bus_id()
90 typelen, type, domid, devid) >= XEN_BUS_ID_SIZE) in backend_bus_id()
Dxenbus_probe_frontend.c35 static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in frontend_bus_id() argument
38 if (!nodename || strlen(nodename + 1) >= XEN_BUS_ID_SIZE) { in frontend_bus_id()
43 strscpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); in frontend_bus_id()
Dxenbus_probe.c505 char devname[XEN_BUS_ID_SIZE]; in xenbus_probe_node()
631 char type[XEN_BUS_ID_SIZE]; in xenbus_dev_changed()
645 snprintf(type, XEN_BUS_ID_SIZE, "%.*s", (int)strcspn(p, "/"), p); in xenbus_dev_changed()
646 type[XEN_BUS_ID_SIZE-1] = '\0'; in xenbus_dev_changed()