diff options
Diffstat (limited to 'net/rxrpc')
-rw-r--r-- | net/rxrpc/ar-internal.h | 150 |
1 files changed, 70 insertions, 80 deletions
diff --git a/net/rxrpc/ar-internal.h b/net/rxrpc/ar-internal.h index a693aca2ae2e..5f43675ee1df 100644 --- a/net/rxrpc/ar-internal.h +++ b/net/rxrpc/ar-internal.h | |||
@@ -426,17 +426,16 @@ extern struct workqueue_struct *rxrpc_workqueue; | |||
426 | /* | 426 | /* |
427 | * ar-accept.c | 427 | * ar-accept.c |
428 | */ | 428 | */ |
429 | extern void rxrpc_accept_incoming_calls(struct work_struct *); | 429 | void rxrpc_accept_incoming_calls(struct work_struct *); |
430 | extern struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, | 430 | struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, unsigned long); |
431 | unsigned long); | 431 | int rxrpc_reject_call(struct rxrpc_sock *); |
432 | extern int rxrpc_reject_call(struct rxrpc_sock *); | ||
433 | 432 | ||
434 | /* | 433 | /* |
435 | * ar-ack.c | 434 | * ar-ack.c |
436 | */ | 435 | */ |
437 | extern void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); | 436 | void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); |
438 | extern void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); | 437 | void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); |
439 | extern void rxrpc_process_call(struct work_struct *); | 438 | void rxrpc_process_call(struct work_struct *); |
440 | 439 | ||
441 | /* | 440 | /* |
442 | * ar-call.c | 441 | * ar-call.c |
@@ -445,19 +444,18 @@ extern struct kmem_cache *rxrpc_call_jar; | |||
445 | extern struct list_head rxrpc_calls; | 444 | extern struct list_head rxrpc_calls; |
446 | extern rwlock_t rxrpc_call_lock; | 445 | extern rwlock_t rxrpc_call_lock; |
447 | 446 | ||
448 | extern struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *, | 447 | struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *, |
449 | struct rxrpc_transport *, | 448 | struct rxrpc_transport *, |
450 | struct rxrpc_conn_bundle *, | 449 | struct rxrpc_conn_bundle *, |
451 | unsigned long, int, gfp_t); | 450 | unsigned long, int, gfp_t); |
452 | extern struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *, | 451 | struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *, |
453 | struct rxrpc_connection *, | 452 | struct rxrpc_connection *, |
454 | struct rxrpc_header *, gfp_t); | 453 | struct rxrpc_header *, gfp_t); |
455 | extern struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, | 454 | struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, unsigned long); |
456 | unsigned long); | 455 | void rxrpc_release_call(struct rxrpc_call *); |
457 | extern void rxrpc_release_call(struct rxrpc_call *); | 456 | void rxrpc_release_calls_on_socket(struct rxrpc_sock *); |
458 | extern void rxrpc_release_calls_on_socket(struct rxrpc_sock *); | 457 | void __rxrpc_put_call(struct rxrpc_call *); |
459 | extern void __rxrpc_put_call(struct rxrpc_call *); | 458 | void __exit rxrpc_destroy_all_calls(void); |
460 | extern void __exit rxrpc_destroy_all_calls(void); | ||
461 | 459 | ||
462 | /* | 460 | /* |
463 | * ar-connection.c | 461 | * ar-connection.c |
@@ -465,19 +463,16 @@ extern void __exit rxrpc_destroy_all_calls(void); | |||
465 | extern struct list_head rxrpc_connections; | 463 | extern struct list_head rxrpc_connections; |
466 | extern rwlock_t rxrpc_connection_lock; | 464 | extern rwlock_t rxrpc_connection_lock; |
467 | 465 | ||
468 | extern struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *, | 466 | struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *, |
469 | struct rxrpc_transport *, | 467 | struct rxrpc_transport *, |
470 | struct key *, | 468 | struct key *, __be16, gfp_t); |
471 | __be16, gfp_t); | 469 | void rxrpc_put_bundle(struct rxrpc_transport *, struct rxrpc_conn_bundle *); |
472 | extern void rxrpc_put_bundle(struct rxrpc_transport *, | 470 | int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, |
473 | struct rxrpc_conn_bundle *); | 471 | struct rxrpc_conn_bundle *, struct rxrpc_call *, gfp_t); |
474 | extern int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, | 472 | void rxrpc_put_connection(struct rxrpc_connection *); |
475 | struct rxrpc_conn_bundle *, struct rxrpc_call *, | 473 | void __exit rxrpc_destroy_all_connections(void); |
476 | gfp_t); | 474 | struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *, |
477 | extern void rxrpc_put_connection(struct rxrpc_connection *); | 475 | struct rxrpc_header *); |
478 | extern void __exit rxrpc_destroy_all_connections(void); | ||
479 | extern struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *, | ||
480 | struct rxrpc_header *); | ||
481 | extern struct rxrpc_connection * | 476 | extern struct rxrpc_connection * |
482 | rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, | 477 | rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, |
483 | gfp_t); | 478 | gfp_t); |
@@ -485,15 +480,15 @@ rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, | |||
485 | /* | 480 | /* |
486 | * ar-connevent.c | 481 | * ar-connevent.c |
487 | */ | 482 | */ |
488 | extern void rxrpc_process_connection(struct work_struct *); | 483 | void rxrpc_process_connection(struct work_struct *); |
489 | extern void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); | 484 | void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); |
490 | extern void rxrpc_reject_packets(struct work_struct *); | 485 | void rxrpc_reject_packets(struct work_struct *); |
491 | 486 | ||
492 | /* | 487 | /* |
493 | * ar-error.c | 488 | * ar-error.c |
494 | */ | 489 | */ |
495 | extern void rxrpc_UDP_error_report(struct sock *); | 490 | void rxrpc_UDP_error_report(struct sock *); |
496 | extern void rxrpc_UDP_error_handler(struct work_struct *); | 491 | void rxrpc_UDP_error_handler(struct work_struct *); |
497 | 492 | ||
498 | /* | 493 | /* |
499 | * ar-input.c | 494 | * ar-input.c |
@@ -501,18 +496,17 @@ extern void rxrpc_UDP_error_handler(struct work_struct *); | |||
501 | extern unsigned long rxrpc_ack_timeout; | 496 | extern unsigned long rxrpc_ack_timeout; |
502 | extern const char *rxrpc_pkts[]; | 497 | extern const char *rxrpc_pkts[]; |
503 | 498 | ||
504 | extern void rxrpc_data_ready(struct sock *, int); | 499 | void rxrpc_data_ready(struct sock *, int); |
505 | extern int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, | 500 | int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, bool); |
506 | bool); | 501 | void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *); |
507 | extern void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *); | ||
508 | 502 | ||
509 | /* | 503 | /* |
510 | * ar-local.c | 504 | * ar-local.c |
511 | */ | 505 | */ |
512 | extern rwlock_t rxrpc_local_lock; | 506 | extern rwlock_t rxrpc_local_lock; |
513 | extern struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); | 507 | struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); |
514 | extern void rxrpc_put_local(struct rxrpc_local *); | 508 | void rxrpc_put_local(struct rxrpc_local *); |
515 | extern void __exit rxrpc_destroy_all_locals(void); | 509 | void __exit rxrpc_destroy_all_locals(void); |
516 | 510 | ||
517 | /* | 511 | /* |
518 | * ar-key.c | 512 | * ar-key.c |
@@ -520,31 +514,29 @@ extern void __exit rxrpc_destroy_all_locals(void); | |||
520 | extern struct key_type key_type_rxrpc; | 514 | extern struct key_type key_type_rxrpc; |
521 | extern struct key_type key_type_rxrpc_s; | 515 | extern struct key_type key_type_rxrpc_s; |
522 | 516 | ||
523 | extern int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); | 517 | int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); |
524 | extern int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); | 518 | int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); |
525 | extern int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, | 519 | int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, time_t, |
526 | time_t, u32); | 520 | u32); |
527 | 521 | ||
528 | /* | 522 | /* |
529 | * ar-output.c | 523 | * ar-output.c |
530 | */ | 524 | */ |
531 | extern int rxrpc_resend_timeout; | 525 | extern int rxrpc_resend_timeout; |
532 | 526 | ||
533 | extern int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); | 527 | int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); |
534 | extern int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *, | 528 | int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *, |
535 | struct rxrpc_transport *, struct msghdr *, | 529 | struct rxrpc_transport *, struct msghdr *, size_t); |
536 | size_t); | 530 | int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, struct msghdr *, |
537 | extern int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, | 531 | size_t); |
538 | struct msghdr *, size_t); | ||
539 | 532 | ||
540 | /* | 533 | /* |
541 | * ar-peer.c | 534 | * ar-peer.c |
542 | */ | 535 | */ |
543 | extern struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); | 536 | struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); |
544 | extern void rxrpc_put_peer(struct rxrpc_peer *); | 537 | void rxrpc_put_peer(struct rxrpc_peer *); |
545 | extern struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, | 538 | struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, __be32, __be16); |
546 | __be32, __be16); | 539 | void __exit rxrpc_destroy_all_peers(void); |
547 | extern void __exit rxrpc_destroy_all_peers(void); | ||
548 | 540 | ||
549 | /* | 541 | /* |
550 | * ar-proc.c | 542 | * ar-proc.c |
@@ -556,38 +548,36 @@ extern const struct file_operations rxrpc_connection_seq_fops; | |||
556 | /* | 548 | /* |
557 | * ar-recvmsg.c | 549 | * ar-recvmsg.c |
558 | */ | 550 | */ |
559 | extern void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); | 551 | void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); |
560 | extern int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, | 552 | int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, size_t, |
561 | size_t, int); | 553 | int); |
562 | 554 | ||
563 | /* | 555 | /* |
564 | * ar-security.c | 556 | * ar-security.c |
565 | */ | 557 | */ |
566 | extern int rxrpc_register_security(struct rxrpc_security *); | 558 | int rxrpc_register_security(struct rxrpc_security *); |
567 | extern void rxrpc_unregister_security(struct rxrpc_security *); | 559 | void rxrpc_unregister_security(struct rxrpc_security *); |
568 | extern int rxrpc_init_client_conn_security(struct rxrpc_connection *); | 560 | int rxrpc_init_client_conn_security(struct rxrpc_connection *); |
569 | extern int rxrpc_init_server_conn_security(struct rxrpc_connection *); | 561 | int rxrpc_init_server_conn_security(struct rxrpc_connection *); |
570 | extern int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, | 562 | int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, size_t, |
571 | size_t, void *); | 563 | void *); |
572 | extern int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, | 564 | int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, u32 *); |
573 | u32 *); | 565 | void rxrpc_clear_conn_security(struct rxrpc_connection *); |
574 | extern void rxrpc_clear_conn_security(struct rxrpc_connection *); | ||
575 | 566 | ||
576 | /* | 567 | /* |
577 | * ar-skbuff.c | 568 | * ar-skbuff.c |
578 | */ | 569 | */ |
579 | extern void rxrpc_packet_destructor(struct sk_buff *); | 570 | void rxrpc_packet_destructor(struct sk_buff *); |
580 | 571 | ||
581 | /* | 572 | /* |
582 | * ar-transport.c | 573 | * ar-transport.c |
583 | */ | 574 | */ |
584 | extern struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, | 575 | struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, |
585 | struct rxrpc_peer *, | 576 | struct rxrpc_peer *, gfp_t); |
586 | gfp_t); | 577 | void rxrpc_put_transport(struct rxrpc_transport *); |
587 | extern void rxrpc_put_transport(struct rxrpc_transport *); | 578 | void __exit rxrpc_destroy_all_transports(void); |
588 | extern void __exit rxrpc_destroy_all_transports(void); | 579 | struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *, |
589 | extern struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *, | 580 | struct rxrpc_peer *); |
590 | struct rxrpc_peer *); | ||
591 | 581 | ||
592 | /* | 582 | /* |
593 | * debug tracing | 583 | * debug tracing |