LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

problem reading lvs source code

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: problem reading lvs source code
From: "yuanyong" <goale_yy@xxxxxxx>
Date: Thu, 10 Jul 2003 11:53:12 +0800 (CST)
Hai experts!
    Now I am reading the lvs source code.But I have met a problem.The problem 
is where is the base type of "struct ip_vs_dest* (*schedule)(struct 
ip_vs_service *svc,struct iphdr *iph); ".Where I can find it?Please can you 
help me,thanks.
                                     

yuanyong

 
/*
 *      The scheduler object
 */
struct ip_vs_scheduler {
        struct list_head        n_list;   /* d-linked list head */
        char                    *name;    /* scheduler name */
        atomic_t                refcnt;   /* reference counter */
        struct module           *module;  /* THIS_MODULE/NULL */

        /* scheduler initializing service */
        int (*init_service)(struct ip_vs_service *svc);
        /* scheduling service finish */
        int (*done_service)(struct ip_vs_service *svc);
        /* scheduler updating service */
        int (*update_service)(struct ip_vs_service *svc);

        /* selecting a server from the given service */
        struct ip_vs_dest* (*schedule)(struct ip_vs_service *svc,
                                       struct iphdr *iph);
};

=============================================================
ÅÌÖг¬¼¶Ó¯Àû¾¡ÔÚÕÆÎÕ ÏíÊÜÀ­ÉýµÄ¿ì¸Ð        
http://list.163.com/mlist/pzjg/pzjg.htm
°Ù·Ö°ÙÅ®ÓÑ - ´º¼¾Ñ¡ÃÀ»î¶¯!                 http://love.163.com
¸öÈË¿Õ¼äÃâ·ÑÊÔÓà                           http://www.nease.net
<Prev in Thread] Current Thread [Next in Thread>