Searched refs:lifcp (Results 1 – 5 of 5) sorted by relevance
/titanic_44/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 118 rds_do_lifconf(struct lifconf *lifcp, uint_t *bufsizep) in rds_do_lifconf() argument 132 bzero(lifcp, sizeof (struct lifconf)); in rds_do_lifconf() 133 lifcp->lifc_family = AF_INET; in rds_do_lifconf() 134 lifcp->lifc_len = *bufsizep = (nifs * sizeof (struct lifreq)); in rds_do_lifconf() 135 lifcp->lifc_buf = kmem_zalloc(*bufsizep, KM_NOSLEEP); in rds_do_lifconf() 136 if (lifcp->lifc_buf == NULL) in rds_do_lifconf() 139 err = rds_do_ip_ioctl(SIOCGLIFCONF, sizeof (struct lifconf), lifcp); in rds_do_lifconf() 141 kmem_free(lifcp->lifc_buf, *bufsizep); in rds_do_lifconf()
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp.c | 304 ibcm_do_lifconf(struct lifconf *lifcp, uint_t *bufsizep, sa_family_t family_loc) in ibcm_do_lifconf() argument 325 bzero(lifcp, sizeof (struct lifconf)); in ibcm_do_lifconf() 326 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*lifcp)) in ibcm_do_lifconf() 327 lifcp->lifc_family = family_loc; in ibcm_do_lifconf() 328 lifcp->lifc_len = *bufsizep = lifn.lifn_count * sizeof (struct lifreq); in ibcm_do_lifconf() 329 lifcp->lifc_buf = kmem_zalloc(*bufsizep, KM_SLEEP); in ibcm_do_lifconf() 330 lifcp->lifc_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES; in ibcm_do_lifconf() 332 err = ibcm_do_ip_ioctl(SIOCGLIFCONF, sizeof (struct lifconf), lifcp); in ibcm_do_lifconf() 334 kmem_free(lifcp->lifc_buf, *bufsizep); in ibcm_do_lifconf()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 204 static int find_all_interfaces(struct lifconf *lifcp, char **buf, 1755 find_all_interfaces(struct lifconf *lifcp, char **buf, int64_t lifc_flags) in find_all_interfaces() argument 1773 lifcp->lifc_family = AF_UNSPEC; in find_all_interfaces() 1774 lifcp->lifc_flags = lifc_flags; in find_all_interfaces() 1775 lifcp->lifc_len = 0; in find_all_interfaces() 1776 lifcp->lifc_buf = NULL; in find_all_interfaces() 1784 lifcp->lifc_family = AF_UNSPEC; in find_all_interfaces() 1785 lifcp->lifc_flags = lifc_flags; in find_all_interfaces() 1786 lifcp->lifc_len = bufsize; in find_all_interfaces() 1787 lifcp->lifc_buf = *buf; in find_all_interfaces() [all …]
|
/titanic_44/usr/src/uts/common/rpc/ |
H A D | rpcib.c | 5296 rpcib_do_lifconf(struct lifconf *lifcp, uint_t *bufsizep) in rpcib_do_lifconf() argument 5314 bzero(lifcp, sizeof (struct lifconf)); in rpcib_do_lifconf() 5315 lifcp->lifc_family = AF_UNSPEC; in rpcib_do_lifconf() 5316 lifcp->lifc_len = *bufsizep = lifn.lifn_count * sizeof (struct lifreq); in rpcib_do_lifconf() 5317 lifcp->lifc_buf = kmem_zalloc(*bufsizep, KM_SLEEP); in rpcib_do_lifconf() 5319 err = rpcib_do_ip_ioctl(SIOCGLIFCONF, sizeof (struct lifconf), lifcp); in rpcib_do_lifconf() 5321 kmem_free(lifcp->lifc_buf, *bufsizep); in rpcib_do_lifconf()
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip_if.c | 18089 ip_lifconf_ioctl(ldi_handle_t lh, int af, struct lifconf *lifcp, in ip_lifconf_ioctl() argument 18107 bzero(lifcp, sizeof (*lifcp)); in ip_lifconf_ioctl() 18108 lifcp->lifc_flags = LIFC_UNDER_IPMP; in ip_lifconf_ioctl() 18109 lifcp->lifc_family = af; in ip_lifconf_ioctl() 18110 lifcp->lifc_len = *bufsizep = lifn.lifn_count * sizeof (struct lifreq); in ip_lifconf_ioctl() 18111 lifcp->lifc_buf = kmem_zalloc(*bufsizep, KM_SLEEP); in ip_lifconf_ioctl() 18113 err = ip_ioctl(lh, SIOCGLIFCONF, lifcp, sizeof (*lifcp), cr); in ip_lifconf_ioctl() 18115 kmem_free(lifcp->lifc_buf, *bufsizep); in ip_lifconf_ioctl()
|