Lines Matching refs:result

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