aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
Diffstat (limited to 'net/rxrpc')
-rw-r--r--net/rxrpc/ar-internal.h150
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 */
429extern void rxrpc_accept_incoming_calls(struct work_struct *); 429void rxrpc_accept_incoming_calls(struct work_struct *);
430extern struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, 430struct rxrpc_call *rxrpc_accept_call(struct rxrpc_sock *, unsigned long);
431 unsigned long); 431int rxrpc_reject_call(struct rxrpc_sock *);
432extern int rxrpc_reject_call(struct rxrpc_sock *);
433 432
434/* 433/*
435 * ar-ack.c 434 * ar-ack.c
436 */ 435 */
437extern void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); 436void __rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
438extern void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool); 437void rxrpc_propose_ACK(struct rxrpc_call *, u8, __be32, bool);
439extern void rxrpc_process_call(struct work_struct *); 438void 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;
445extern struct list_head rxrpc_calls; 444extern struct list_head rxrpc_calls;
446extern rwlock_t rxrpc_call_lock; 445extern rwlock_t rxrpc_call_lock;
447 446
448extern struct rxrpc_call *rxrpc_get_client_call(struct rxrpc_sock *, 447struct 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);
452extern struct rxrpc_call *rxrpc_incoming_call(struct rxrpc_sock *, 451struct 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);
455extern struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, 454struct rxrpc_call *rxrpc_find_server_call(struct rxrpc_sock *, unsigned long);
456 unsigned long); 455void rxrpc_release_call(struct rxrpc_call *);
457extern void rxrpc_release_call(struct rxrpc_call *); 456void rxrpc_release_calls_on_socket(struct rxrpc_sock *);
458extern void rxrpc_release_calls_on_socket(struct rxrpc_sock *); 457void __rxrpc_put_call(struct rxrpc_call *);
459extern void __rxrpc_put_call(struct rxrpc_call *); 458void __exit rxrpc_destroy_all_calls(void);
460extern 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);
465extern struct list_head rxrpc_connections; 463extern struct list_head rxrpc_connections;
466extern rwlock_t rxrpc_connection_lock; 464extern rwlock_t rxrpc_connection_lock;
467 465
468extern struct rxrpc_conn_bundle *rxrpc_get_bundle(struct rxrpc_sock *, 466struct 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); 469void rxrpc_put_bundle(struct rxrpc_transport *, struct rxrpc_conn_bundle *);
472extern void rxrpc_put_bundle(struct rxrpc_transport *, 470int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *,
473 struct rxrpc_conn_bundle *); 471 struct rxrpc_conn_bundle *, struct rxrpc_call *, gfp_t);
474extern int rxrpc_connect_call(struct rxrpc_sock *, struct rxrpc_transport *, 472void rxrpc_put_connection(struct rxrpc_connection *);
475 struct rxrpc_conn_bundle *, struct rxrpc_call *, 473void __exit rxrpc_destroy_all_connections(void);
476 gfp_t); 474struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *,
477extern void rxrpc_put_connection(struct rxrpc_connection *); 475 struct rxrpc_header *);
478extern void __exit rxrpc_destroy_all_connections(void);
479extern struct rxrpc_connection *rxrpc_find_connection(struct rxrpc_transport *,
480 struct rxrpc_header *);
481extern struct rxrpc_connection * 476extern struct rxrpc_connection *
482rxrpc_incoming_connection(struct rxrpc_transport *, struct rxrpc_header *, 477rxrpc_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 */
488extern void rxrpc_process_connection(struct work_struct *); 483void rxrpc_process_connection(struct work_struct *);
489extern void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *); 484void rxrpc_reject_packet(struct rxrpc_local *, struct sk_buff *);
490extern void rxrpc_reject_packets(struct work_struct *); 485void rxrpc_reject_packets(struct work_struct *);
491 486
492/* 487/*
493 * ar-error.c 488 * ar-error.c
494 */ 489 */
495extern void rxrpc_UDP_error_report(struct sock *); 490void rxrpc_UDP_error_report(struct sock *);
496extern void rxrpc_UDP_error_handler(struct work_struct *); 491void 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 *);
501extern unsigned long rxrpc_ack_timeout; 496extern unsigned long rxrpc_ack_timeout;
502extern const char *rxrpc_pkts[]; 497extern const char *rxrpc_pkts[];
503 498
504extern void rxrpc_data_ready(struct sock *, int); 499void rxrpc_data_ready(struct sock *, int);
505extern int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, 500int rxrpc_queue_rcv_skb(struct rxrpc_call *, struct sk_buff *, bool, bool);
506 bool); 501void rxrpc_fast_process_packet(struct rxrpc_call *, struct sk_buff *);
507extern 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 */
512extern rwlock_t rxrpc_local_lock; 506extern rwlock_t rxrpc_local_lock;
513extern struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *); 507struct rxrpc_local *rxrpc_lookup_local(struct sockaddr_rxrpc *);
514extern void rxrpc_put_local(struct rxrpc_local *); 508void rxrpc_put_local(struct rxrpc_local *);
515extern void __exit rxrpc_destroy_all_locals(void); 509void __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);
520extern struct key_type key_type_rxrpc; 514extern struct key_type key_type_rxrpc;
521extern struct key_type key_type_rxrpc_s; 515extern struct key_type key_type_rxrpc_s;
522 516
523extern int rxrpc_request_key(struct rxrpc_sock *, char __user *, int); 517int rxrpc_request_key(struct rxrpc_sock *, char __user *, int);
524extern int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int); 518int rxrpc_server_keyring(struct rxrpc_sock *, char __user *, int);
525extern int rxrpc_get_server_data_key(struct rxrpc_connection *, const void *, 519int 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 */
531extern int rxrpc_resend_timeout; 525extern int rxrpc_resend_timeout;
532 526
533extern int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *); 527int rxrpc_send_packet(struct rxrpc_transport *, struct sk_buff *);
534extern int rxrpc_client_sendmsg(struct kiocb *, struct rxrpc_sock *, 528int 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); 530int rxrpc_server_sendmsg(struct kiocb *, struct rxrpc_sock *, struct msghdr *,
537extern 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 */
543extern struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t); 536struct rxrpc_peer *rxrpc_get_peer(struct sockaddr_rxrpc *, gfp_t);
544extern void rxrpc_put_peer(struct rxrpc_peer *); 537void rxrpc_put_peer(struct rxrpc_peer *);
545extern struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, 538struct rxrpc_peer *rxrpc_find_peer(struct rxrpc_local *, __be32, __be16);
546 __be32, __be16); 539void __exit rxrpc_destroy_all_peers(void);
547extern 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 */
559extern void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *); 551void rxrpc_remove_user_ID(struct rxrpc_sock *, struct rxrpc_call *);
560extern int rxrpc_recvmsg(struct kiocb *, struct socket *, struct msghdr *, 552int 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 */
566extern int rxrpc_register_security(struct rxrpc_security *); 558int rxrpc_register_security(struct rxrpc_security *);
567extern void rxrpc_unregister_security(struct rxrpc_security *); 559void rxrpc_unregister_security(struct rxrpc_security *);
568extern int rxrpc_init_client_conn_security(struct rxrpc_connection *); 560int rxrpc_init_client_conn_security(struct rxrpc_connection *);
569extern int rxrpc_init_server_conn_security(struct rxrpc_connection *); 561int rxrpc_init_server_conn_security(struct rxrpc_connection *);
570extern int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, 562int rxrpc_secure_packet(const struct rxrpc_call *, struct sk_buff *, size_t,
571 size_t, void *); 563 void *);
572extern int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, 564int rxrpc_verify_packet(const struct rxrpc_call *, struct sk_buff *, u32 *);
573 u32 *); 565void rxrpc_clear_conn_security(struct rxrpc_connection *);
574extern void rxrpc_clear_conn_security(struct rxrpc_connection *);
575 566
576/* 567/*
577 * ar-skbuff.c 568 * ar-skbuff.c
578 */ 569 */
579extern void rxrpc_packet_destructor(struct sk_buff *); 570void rxrpc_packet_destructor(struct sk_buff *);
580 571
581/* 572/*
582 * ar-transport.c 573 * ar-transport.c
583 */ 574 */
584extern struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *, 575struct rxrpc_transport *rxrpc_get_transport(struct rxrpc_local *,
585 struct rxrpc_peer *, 576 struct rxrpc_peer *, gfp_t);
586 gfp_t); 577void rxrpc_put_transport(struct rxrpc_transport *);
587extern void rxrpc_put_transport(struct rxrpc_transport *); 578void __exit rxrpc_destroy_all_transports(void);
588extern void __exit rxrpc_destroy_all_transports(void); 579struct rxrpc_transport *rxrpc_find_transport(struct rxrpc_local *,
589extern 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