Lines Matching defs:pip

1175  * have the same dip (or pip) is very low, so
1176 * hashing by dip (or pip) pointer should suffice.
2645 * di_register_pip(), di_find_pip(): The pip must be protected from deallocation
2647 * client(or phci)<->pip linkage while traversing the list and then holding the
2648 * pip when it is found in the list.
2652 di_register_pip(struct di_state *st, mdi_pathinfo_t *pip, di_off_t off)
2658 ASSERT(pip);
2664 pk->pk_pip = pip;
2665 path_addr = mdi_pi_get_addr(pip);
2668 pk->pk_client = mdi_pi_get_client(pip);
2669 pk->pk_phci = mdi_pi_get_phci(pip);
2675 "tree walk", (void *)pip);
2680 * As with di_register_pip, the caller must hold or lock the pip
2683 di_pip_find(struct di_state *st, mdi_pathinfo_t *pip, di_off_t *off_p)
2698 if (pip == NULL) {
2706 pk->pk_pip = pip;
2707 pk->pk_path_addr = mdi_pi_get_addr(pip);
2708 pk->pk_client = mdi_pi_get_client(pip);
2709 pk->pk_phci = mdi_pi_get_phci(pip);
2752 di_path_getprop(mdi_pathinfo_t *pip, di_off_t *off_p,
2764 if (mdi_pi_get_next_prop(pip, NULL) == NULL) {
2772 while (prop = mdi_pi_get_next_prop(pip, prop)) {
2883 mdi_pathinfo_t *pip;
2893 * client_link i.e. the list of pip's belonging to the
2903 pip = NULL;
2904 while (pip = (*next_pip)(dip, pip)) {
2907 dcmn_err((CE_WARN, "marshalling pip = %p", (void *)pip));
2909 mdi_pi_lock(pip);
2912 if (mdi_pi_ishidden(pip)) {
2914 mdi_pi_unlock(pip);
2918 if (di_pip_find(st, pip, &stored_offset) != -1) {
2923 * and linkage has already been set when the pip was
2934 * pip was snapshotted. So we are done with both
2942 mdi_pi_unlock(pip);
2947 * Now that we need to snapshot this pip, check memory
2972 di_register_pip(st, pip, me->self);
2974 me->path_state = path_state_convert(mdi_pi_get_state(pip));
2975 me->path_flags = path_flags_convert(mdi_pi_get_flags(pip));
2977 me->path_instance = mdi_pi_get_path_instance(pip);
2982 size = strlen(mdi_pi_get_addr(pip)) + 1;
2984 (void) strcpy(di_mem_addr(st, off), mdi_pi_get_addr(pip));
2993 off = di_path_getprop(pip, &me->path_prop, st);
2998 mdi_pi_unlock(pip);