1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

where is FreeBSD's corresponding data structure for Linux's "struct timer_list ?"

Discussion in 'FreeBSD Development' started by liuwang, Nov 21, 2011.

  1. liuwang

    liuwang New Member

    Messages:
    31
    Likes Received:
    0
    Where is FreeBSD's corresponding data structure for Linux's struct timer_list?
     
  2. liuwang

    liuwang New Member

    Messages:
    31
    Likes Received:
    0
    Is "ktimer" the one for Linux "struct timer_list ?"

    Is "ktimer" the one ?


    Code:
    struct ktimer {
    	nt_dispatch_header	k_header;
    	uint64_t		k_duetime;
    	union {
    		list_entry		k_timerlistentry;
    		struct callout		*k_callout;
    	} u;
    	void			*k_dpc;
    	uint32_t		k_period;
    };
     
  3. richardpl

    richardpl New Member

    Messages:
    841
    Likes Received:
    0
    Obviously not, ktimer is Windows crap.

    And FreeBSD do not need to have corresponding data structure with Linux at all.
     
  4. vertexSymphony

    vertexSymphony New Member

    Messages:
    79
    Likes Received:
    0
    There was no need to be aggressive like that =/
    Maybe not the same structure, but he refers to *where* you can get the same functionality/information in FreeBSD.
     
  5. liuwang

    liuwang New Member

    Messages:
    31
    Likes Received:
    0
    Thanks your reply anyway.

    What and where is the FreeBSD's mechanism for timeout timer?

    Sincerely,
    Liu
     
  6. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,422
    Likes Received:
    14
  7. richardpl

    richardpl New Member

    Messages:
    841
    Likes Received:
    0
    That is for userland, just to be sure.
     
  8. liuwang

    liuwang New Member

    Messages:
    31
    Likes Received:
    0
    SirDice,

    Thanks.
    Retrieved down to timeet.h from your hint.

    Sincerely,
    Liu