Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

discovery.h File Reference

#include <asm/param.h>
#include <net/irda/irda.h>
#include <net/irda/irqueue.h>

Include dependency graph for discovery.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DISCOVERY_EXPIRE_TIMEOUT   6*HZ
#define DISCOVERY_DEFAULT_SLOTS   0
#define NICKNAME_MAX_LEN   21

Functions

void irlmp_add_discovery (hashbin_t *cachelog, discovery_t *discovery)
void irlmp_add_discovery_log (hashbin_t *cachelog, hashbin_t *log)
void irlmp_expire_discoveries (hashbin_t *log, __u32 saddr, int force)


Define Documentation

#define DISCOVERY_DEFAULT_SLOTS   0
 

Definition at line 40 of file discovery.h.

Referenced by ircomm_tty_state_idle(), ircomm_tty_state_search(), irda_create(), irlan_init(), and irlmp_discovery_request().

#define DISCOVERY_EXPIRE_TIMEOUT   6*HZ
 

Definition at line 39 of file discovery.h.

Referenced by irlmp_expire_discoveries().

#define NICKNAME_MAX_LEN   21
 

Definition at line 42 of file discovery.h.

Referenced by irda_getsockopt(), irlap_recv_discovery_xid_cmd(), irlap_recv_discovery_xid_rsp(), irlmp_do_discovery(), and irlmp_get_discovery_response().


Function Documentation

void irlmp_add_discovery hashbin_t cachelog,
discovery_t discovery
 

Definition at line 47 of file discovery.c.

References discovery_t::daddr, hashbin_get_first(), hashbin_get_next(), hashbin_insert(), hashbin_remove(), irlmp, kfree(), irlmp_cb::lock, discovery_t::nickname, NULL, spin_lock_irqsave, spin_unlock_irqrestore, and strcmp.

Referenced by irlmp_add_discovery_log(), and irlmp_link_discovery_indication().

Here is the call graph for this function:

void irlmp_add_discovery_log hashbin_t cachelog,
hashbin_t log
 

Definition at line 91 of file discovery.c.

References hashbin_delete(), hashbin_remove_first(), IRDA_DEBUG, irlmp_add_discovery(), kfree(), and NULL.

Referenced by irlmp_link_discovery_confirm().

Here is the call graph for this function:

void irlmp_expire_discoveries hashbin_t log,
__u32  saddr,
int  force
 

Definition at line 124 of file discovery.c.

References curr, discovery_t::daddr, DISCOVERY_EXPIRE_TIMEOUT, hashbin_get_first(), hashbin_get_next(), hashbin_remove(), IRDA_DEBUG, jiffies, kfree(), NULL, discovery_t::saddr, and discovery_t::timestamp.

Referenced by irlmp_do_discovery(), and irlmp_unregister_link().

Here is the call graph for this function: