Lines Matching refs:used
327 add_dependency(rsrc_t *user, rsrc_t *used)
332 if (user == NULL || used == NULL)
335 if (user->id && used->id && strcmp(user->id, used->id) == 0) {
348 * Does the using resource already depends on the used
351 if (link->used == used)
362 _msg(6, ("TTYMUX: New link user %s used %s\n", user->id, used->id));
365 link->used = used;
446 major(link->used->dev), minor(link->used->dev),
447 link->user->id, link->used->id));
452 if (link->user->dev == NODEV || link->used->dev == NODEV) {
460 if (major(link->user->dev) == major(link->used->dev)) {
470 if (link->used->dev == cn_dev) {
486 lfd = open(link->used->id, O_EXCL|O_RDWR|O_NONBLOCK|O_NOCTTY);
491 link->used->id, link->user->id);
495 errno, link->used->id);
508 * Figure out if the 'used' resource is already associated with
515 as.ttymux_ldev = link->used->dev;
532 * Now link and associate the used resource under the using resource.
535 as.ttymux_ldev = link->used->dev;
562 errno, link->used->id);
593 errno, link->used->id);
609 link->user->id, link->used->id,
611 major(link->used->dev), minor(link->used->dev)));
613 as.ttymux_ldev = link->used->dev;
619 major(link->used->dev), minor(link->used->dev), errno));
633 rv, link->used->id);
639 errno, major(link->used->dev), minor(link->used->dev));
642 link->user->id, link->used->id));
761 rsrc_t *used;
812 used = cache_get(buf);
814 used = locate_node(asp->ttymux_ldev, &root);
821 if (used == NULL) {
827 ruser->id, used->id, asp->ttymux_linkid));
829 link = add_dependency(ruser, used);
878 if (link->user == rsrc || link->used == rsrc) {
901 if (link->user == rsrc || link->used == rsrc) {
903 link->user->id, link->used->id));
943 if (link->used == rsrc)
1272 * Search the whole cache looking for any unregistered used resources
1292 if ((link->used->flags & REGISTERED) != 0)
1296 link->used->id));
1297 rv = rcm_register_interest(hd, link->used->id,
1302 rv, link->used->id);
1304 link->used->flags |= REGISTERED;