Home
last modified time | relevance | path

Searched refs:nodename (Results 1 – 25 of 57) sorted by relevance

123

/linux-2.6.39/drivers/xen/xenbus/
Dxenbus_probe_backend.c57 static int backend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in backend_bus_id() argument
63 type = strchr(nodename, '/'); in backend_bus_id()
71 devid = strrchr(nodename, '/') + 1; in backend_bus_id()
73 err = xenbus_gather(XBT_NIL, nodename, "frontend-id", "%i", &domid, in backend_bus_id()
114 if (add_uevent_var(env, "XENBUS_PATH=%s", xdev->nodename)) in xenbus_uevent_backend()
135 char *nodename; in xenbus_probe_backend_unit() local
138 nodename = kasprintf(GFP_KERNEL, "%s/%s", dir, name); in xenbus_probe_backend_unit()
139 if (!nodename) in xenbus_probe_backend_unit()
142 DPRINTK("%s\n", nodename); in xenbus_probe_backend_unit()
144 err = xenbus_probe_node(bus, type, nodename); in xenbus_probe_backend_unit()
[all …]
Dxenbus_probe_frontend.c31 static int frontend_bus_id(char bus_id[XEN_BUS_ID_SIZE], const char *nodename) in frontend_bus_id() argument
33 nodename = strchr(nodename, '/'); in frontend_bus_id()
34 if (!nodename || strlen(nodename + 1) >= XEN_BUS_ID_SIZE) { in frontend_bus_id()
35 printk(KERN_WARNING "XENBUS: bad frontend %s\n", nodename); in frontend_bus_id()
39 strlcpy(bus_id, nodename + 1, XEN_BUS_ID_SIZE); in frontend_bus_id()
52 char *nodename; in xenbus_probe_frontend() local
55 nodename = kasprintf(GFP_KERNEL, "%s/%s/%s", bus->root, type, name); in xenbus_probe_frontend()
56 if (!nodename) in xenbus_probe_frontend()
59 DPRINTK("%s", nodename); in xenbus_probe_frontend()
61 err = xenbus_probe_node(bus, type, nodename); in xenbus_probe_frontend()
[all …]
Dxenbus_probe.c141 int err = xenbus_gather(XBT_NIL, xendev->nodename, in xenbus_read_otherend_details()
148 xendev->nodename); in xenbus_read_otherend_details()
156 xendev->nodename); in xenbus_read_otherend_details()
212 DPRINTK("%s", dev->nodename); in xenbus_dev_probe()
228 dev->nodename); in xenbus_dev_probe()
239 dev->nodename); in xenbus_dev_probe()
245 xenbus_dev_error(dev, err, "xenbus_dev_probe on %s", dev->nodename); in xenbus_dev_probe()
256 DPRINTK("%s", dev->nodename); in xenbus_dev_remove()
274 DPRINTK("%s", dev->nodename); in xenbus_dev_shutdown()
279 dev->nodename, xenbus_strstate(dev->state)); in xenbus_dev_shutdown()
[all …]
Dxenbus_probe.h43 int (*get_bus_id)(char bus_id[XEN_BUS_ID_SIZE], const char *nodename);
60 const char *nodename);
Dxenbus_client.c174 err = xenbus_scanf(xbt, dev->nodename, "state", "%d", &current_state); in __xenbus_switch_state()
178 err = xenbus_printf(xbt, dev->nodename, "state", "%d", state); in __xenbus_switch_state()
227 return kasprintf(GFP_KERNEL, "error/%s", dev->nodename); in error_path()
255 dev->nodename, printf_buffer); in xenbus_va_dev_error()
261 dev->nodename, printf_buffer); in xenbus_va_dev_error()
/linux-2.6.39/drivers/base/
Ddevtmpfs.c136 const char *nodename; in devtmpfs_create_node() local
146 nodename = device_get_devnode(dev, &mode, &tmp); in devtmpfs_create_node()
147 if (!nodename) in devtmpfs_create_node()
160 nodename, LOOKUP_PARENT, &nd); in devtmpfs_create_node()
162 create_path(nodename); in devtmpfs_create_node()
164 nodename, LOOKUP_PARENT, &nd); in devtmpfs_create_node()
283 const char *nodename; in devtmpfs_delete_node() local
294 nodename = device_get_devnode(dev, NULL, &tmp); in devtmpfs_delete_node()
295 if (!nodename) in devtmpfs_delete_node()
300 nodename, LOOKUP_PARENT, &nd); in devtmpfs_delete_node()
[all …]
/linux-2.6.39/drivers/net/xen-netback/
Dxenbus.c44 xenbus_rm(XBT_NIL, dev->nodename, "hotplug-status"); in netback_remove()
85 err = xenbus_printf(xbt, dev->nodename, "feature-sg", "%d", sg); in netback_probe()
91 err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv4", in netback_probe()
99 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
110 err = xenbus_printf(xbt, dev->nodename, in netback_probe()
155 val = xenbus_read(XBT_NIL, xdev->nodename, "script", NULL); in netback_uevent()
184 err = xenbus_scanf(XBT_NIL, dev->nodename, "handle", "%li", &handle); in backend_create_xenvif()
207 xenbus_rm(XBT_NIL, dev->nodename, "hotplug-status"); in disconnect_backend()
229 __func__, dev->nodename); in frontend_changed()
280 ratestr = xenbus_read(XBT_NIL, dev->nodename, "rate", NULL); in xen_net_read_rate()
[all …]
/linux-2.6.39/include/linux/
Dutsname.h8 char nodename[9]; member
18 char nodename[65]; member
26 char nodename[__NEW_UTS_LEN + 1]; member
Dmiscdevice.h54 const char *nodename; member
/linux-2.6.39/drivers/input/misc/
Dxen-kbdfront.c123 snprintf(info->phys, sizeof(info->phys), "xenbus/%s", dev->nodename); in xenkbd_probe()
132 xenbus_printf(XBT_NIL, dev->nodename, "request-abs-pointer", "1"); in xenkbd_probe()
256 ret = xenbus_printf(xbt, dev->nodename, "page-ref", "%lu", in xenkbd_connect_backend()
260 ret = xenbus_printf(xbt, dev->nodename, "page-gref", "%u", info->gref); in xenkbd_connect_backend()
263 ret = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in xenkbd_connect_backend()
324 ret = xenbus_printf(XBT_NIL, info->xbdev->nodename, in xenkbd_backend_changed()
/linux-2.6.39/kernel/
Dutsname_sysctl.c84 .data = init_uts_ns.name.nodename,
85 .maxlen = sizeof(init_uts_ns.name.nodename),
Dsys.c1176 error |= __copy_to_user(&name->nodename, &utsname()->nodename, in SYSCALL_DEFINE1()
1178 error |= __put_user(0, name->nodename + __OLD_UTS_LEN); in SYSCALL_DEFINE1()
1211 memcpy(u->nodename, tmp, len); in SYSCALL_DEFINE2()
1212 memset(u->nodename + len, 0, sizeof(u->nodename) - len); in SYSCALL_DEFINE2()
1230 i = 1 + strlen(u->nodename); in SYSCALL_DEFINE2()
1234 if (copy_to_user(name, u->nodename, i)) in SYSCALL_DEFINE2()
/linux-2.6.39/arch/parisc/hpux/
Dsys_hpux.c101 char nodename[HPUX_UTSLEN]; member
250 error |= __copy_to_user(&name->nodename, &utsname()->nodename, in hpux_uname()
252 error |= __put_user(0, name->nodename + HPUX_UTSLEN - 1); in hpux_uname()
/linux-2.6.39/drivers/block/
Dxen-blkfront.c840 err = xenbus_printf(xbt, dev->nodename, in talk_to_blkback()
846 err = xenbus_printf(xbt, dev->nodename, in talk_to_blkback()
852 err = xenbus_printf(xbt, dev->nodename, "protocol", "%s", in talk_to_blkback()
894 err = xenbus_scanf(XBT_NIL, dev->nodename, in blkfront_probe()
898 err = xenbus_scanf(XBT_NIL, dev->nodename, "virtual-device-ext", in blkfront_probe()
926 type = xenbus_read(XBT_NIL, dev->nodename, "device-type", &len); in blkfront_probe()
952 info->handle = simple_strtoul(strrchr(dev->nodename, '/')+1, NULL, 0); in blkfront_probe()
1044 dev_dbg(&dev->dev, "blkfront_resume: %s\n", dev->nodename); in blkfront_resume()
1215 dev_dbg(&xbdev->dev, "%s removed", xbdev->nodename); in blkfront_remove()
1244 xbdev->nodename, bdev->bd_openers); in blkfront_remove()
/linux-2.6.39/drivers/s390/char/
Dsclp_async.c55 strncat(data, init_utsname()->nodename, in call_home_on_panic()
56 sizeof(init_utsname()->nodename)); in call_home_on_panic()
/linux-2.6.39/init/
Dversion.c30 .nodename = UTS_NODENAME,
/linux-2.6.39/drivers/pci/
Dxen-pcifront.c799 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
802 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
805 err = xenbus_printf(trans, pdev->xdev->nodename, in pcifront_publish_info()
842 if (xenbus_read_driver_state(pdev->xdev->nodename) != in pcifront_try_connect()
906 prev_state = xenbus_read_driver_state(pdev->xdev->nodename); in pcifront_try_disconnect()
930 if (xenbus_read_driver_state(pdev->xdev->nodename) != in pcifront_attach_devices()
990 if (xenbus_read_driver_state(pdev->xdev->nodename) != in pcifront_detach_devices()
/linux-2.6.39/drivers/char/
Dmisc.c267 if (c->nodename) in misc_devnode()
268 return kstrdup(c->nodename, GFP_KERNEL); in misc_devnode()
/linux-2.6.39/arch/sparc/prom/
Dtree_32.c183 phandle prom_searchsiblings(phandle node_start, char *nodename) in prom_searchsiblings() argument
195 if(strcmp(nodename, promlib_buf)==0) return thisnode; in prom_searchsiblings()
Dtree_64.c214 phandle prom_searchsiblings(phandle node_start, const char *nodename) in prom_searchsiblings() argument
226 if(strcmp(nodename, promlib_buf)==0) return thisnode; in prom_searchsiblings()
/linux-2.6.39/net/ipv4/
Dipconfig.c412 sprintf(init_utsname()->nodename, "%pI4", &ic_myaddr); in ic_defaults()
670 len = strlen(utsname()->nodename); in ic_dhcp_init_options()
672 memcpy(e, utsname()->nodename, len); in ic_dhcp_init_options()
872 ic_bootp_string(utsname()->nodename, ext+1, *ext, __NEW_UTS_LEN); in ic_do_bootp_ext()
1477 utsname()->nodename, ic_domain, utsname()->domainname); in ip_auto_config()
1584 strlcpy(utsname()->nodename, ip, in ip_auto_config_setup()
1585 sizeof(utsname()->nodename)); in ip_auto_config_setup()
/linux-2.6.39/drivers/net/
Dxen-netfront.c1315 dev_dbg(&dev->dev, "%s\n", dev->nodename); in netfront_resume()
1326 macstr = s = xenbus_read(XBT_NIL, dev->nodename, "mac", NULL); in xen_net_read_mac()
1378 xenbus_dev_fatal(dev, err, "parsing %s/mac", dev->nodename); in setup_netfront()
1450 err = xenbus_printf(xbt, dev->nodename, "tx-ring-ref", "%u", in talk_to_netback()
1456 err = xenbus_printf(xbt, dev->nodename, "rx-ring-ref", "%u", in talk_to_netback()
1462 err = xenbus_printf(xbt, dev->nodename, in talk_to_netback()
1469 err = xenbus_printf(xbt, dev->nodename, "request-rx-copy", "%u", in talk_to_netback()
1476 err = xenbus_printf(xbt, dev->nodename, "feature-rx-notify", "%d", 1); in talk_to_netback()
1482 err = xenbus_printf(xbt, dev->nodename, "feature-sg", "%d", 1); in talk_to_netback()
1488 err = xenbus_printf(xbt, dev->nodename, "feature-gso-tcpv4", "%d", 1); in talk_to_netback()
[all …]
/linux-2.6.39/arch/um/os-Linux/
Dutil.c75 snprintf(buf, len, "%s %s %s %s %s", host.sysname, host.nodename, in setup_hostinfo()
/linux-2.6.39/drivers/video/
Dxen-fbfront.c584 ret = xenbus_printf(xbt, dev->nodename, "page-ref", "%lu", in xenfb_connect_backend()
588 ret = xenbus_printf(xbt, dev->nodename, "event-channel", "%u", in xenfb_connect_backend()
592 ret = xenbus_printf(xbt, dev->nodename, "protocol", "%s", in xenfb_connect_backend()
596 ret = xenbus_printf(xbt, dev->nodename, "feature-update", "1"); in xenfb_connect_backend()
/linux-2.6.39/sound/core/
Dinfo_oss.c99 init_utsname()->nodename, in snd_sndstat_proc_read()

123