Lines Matching full:result
80 struct arglist *result; in uml_parse_vector_ifspec() local
86 result = uml_kmalloc(sizeof(struct arglist), UM_GFP_KERNEL); in uml_parse_vector_ifspec()
87 if (result == NULL) in uml_parse_vector_ifspec()
89 result->numargs = 0; in uml_parse_vector_ifspec()
94 result->tokens[result->numargs] = arg + pos; in uml_parse_vector_ifspec()
96 result->values[result->numargs] = arg + pos; in uml_parse_vector_ifspec()
97 result->numargs++; in uml_parse_vector_ifspec()
115 return result; in uml_parse_vector_ifspec()
118 kfree(result); in uml_parse_vector_ifspec()
202 struct vector_fds *result = NULL; in user_init_tap_fds() local
214 result = uml_kmalloc(sizeof(struct vector_fds), UM_GFP_KERNEL); in user_init_tap_fds()
215 if (result == NULL) { in user_init_tap_fds()
219 result->rx_fd = -1; in user_init_tap_fds()
220 result->tx_fd = -1; in user_init_tap_fds()
221 result->remote_addr = NULL; in user_init_tap_fds()
222 result->remote_addr_size = 0; in user_init_tap_fds()
239 result->tx_fd = fd; in user_init_tap_fds()
240 result->rx_fd = fd; in user_init_tap_fds()
249 return result; in user_init_tap_fds()
252 kfree(result); in user_init_tap_fds()
259 struct vector_fds *result = NULL; in user_init_hybrid_fds() local
268 result = uml_kmalloc(sizeof(struct vector_fds), UM_GFP_KERNEL); in user_init_hybrid_fds()
269 if (result == NULL) { in user_init_hybrid_fds()
273 result->rx_fd = -1; in user_init_hybrid_fds()
274 result->tx_fd = -1; in user_init_hybrid_fds()
275 result->remote_addr = NULL; in user_init_hybrid_fds()
276 result->remote_addr_size = 0; in user_init_hybrid_fds()
280 result->tx_fd = create_tap_fd(iface); in user_init_hybrid_fds()
281 if (result->tx_fd < 0) { in user_init_hybrid_fds()
282 printk(UM_KERN_ERR "uml_tap: failed to create tun interface: %i\n", result->tx_fd); in user_init_hybrid_fds()
288 result->rx_fd = create_raw_fd(iface, ETH_P_ALL, ETH_P_ALL); in user_init_hybrid_fds()
289 if (result->rx_fd == -1) { in user_init_hybrid_fds()
291 "uml_tap: failed to create paired raw socket: %i\n", result->rx_fd); in user_init_hybrid_fds()
300 return result; in user_init_hybrid_fds()
303 kfree(result); in user_init_hybrid_fds()
312 struct vector_fds *result = NULL; in user_init_unix_fds() local
317 result = uml_kmalloc(sizeof(struct vector_fds), UM_GFP_KERNEL); in user_init_unix_fds()
318 if (result == NULL) { in user_init_unix_fds()
372 result->rx_fd = fd; in user_init_unix_fds()
373 result->tx_fd = fd; in user_init_unix_fds()
374 result->remote_addr_size = sizeof(struct sockaddr_un); in user_init_unix_fds()
375 result->remote_addr = remote_addr; in user_init_unix_fds()
376 return result; in user_init_unix_fds()
381 kfree(result); in user_init_unix_fds()
409 struct vector_fds *result = NULL; in user_init_fd_fds() local
418 result = uml_kmalloc(sizeof(struct vector_fds), UM_GFP_KERNEL); in user_init_fd_fds()
419 if (result == NULL) { in user_init_fd_fds()
424 result->rx_fd = fd; in user_init_fd_fds()
425 result->tx_fd = fd; in user_init_fd_fds()
426 result->remote_addr_size = 0; in user_init_fd_fds()
427 result->remote_addr = NULL; in user_init_fd_fds()
428 return result; in user_init_fd_fds()
433 kfree(result); in user_init_fd_fds()
442 struct vector_fds *result = NULL; in user_init_raw_fds() local
459 result = uml_kmalloc(sizeof(struct vector_fds), UM_GFP_KERNEL); in user_init_raw_fds()
460 if (result != NULL) { in user_init_raw_fds()
461 result->rx_fd = rxfd; in user_init_raw_fds()
462 result->tx_fd = txfd; in user_init_raw_fds()
463 result->remote_addr = NULL; in user_init_raw_fds()
464 result->remote_addr_size = 0; in user_init_raw_fds()
471 return result; in user_init_raw_fds()
474 kfree(result); in user_init_raw_fds()
530 struct vector_fds *result = NULL; in user_init_socket_fds() local
616 result = uml_kmalloc(sizeof(struct vector_fds), UM_GFP_KERNEL); in user_init_socket_fds()
617 if (result != NULL) { in user_init_socket_fds()
618 result->rx_fd = fd; in user_init_socket_fds()
619 result->tx_fd = fd; in user_init_socket_fds()
620 result->remote_addr = uml_kmalloc( in user_init_socket_fds()
622 if (result->remote_addr == NULL) in user_init_socket_fds()
624 result->remote_addr_size = gairesult->ai_addrlen; in user_init_socket_fds()
626 result->remote_addr, in user_init_socket_fds()
632 return result; in user_init_socket_fds()
639 if (result != NULL) { in user_init_socket_fds()
640 kfree(result->remote_addr); in user_init_socket_fds()
641 kfree(result); in user_init_socket_fds()