Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

struct_hrtimer(9) [centos man page]

struct_hrtimer - the basic hrtimer structure SYNOPSIS
struct hrtimer { struct timerqueue_node node; ktime_t _softexpires; enum hrtimer_restart (* function) (struct hrtimer *); struct hrtimer_clock_base * base; unsigned long state; #ifdef CONFIG_TIMER_STATS int start_pid; void * start_site; char start_comm[16]; #endif }; MEMBERS
node timerqueue node, which also manages node.expires, the absolute expiry time in the hrtimers internal representation. The time is related to the clock on which the timer is based. Is setup by adding slack to the _softexpires value. For non range timers identical to _softexpires. _softexpires the absolute earliest expiry time of the hrtimer. The time which was given as expiry time when the timer was armed. function timer expiry callback function base pointer to the timer base (per cpu and per clock) state state information (See bit values above) start_pid timer statistics field to store the pid of the task which started the timer start_site timer statistics field to store the site where the timer was started start_comm[16] timer statistics field to store the name of the process which started the timer DESCRIPTION
The hrtimer structure must be initialized by hrtimer_init COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 STRUCT HRTIMER(9)

Check Out this Related Man Page

SCHEDULE_HRTIMEOUT_R(9) 					   Driver Basics					   SCHEDULE_HRTIMEOUT_R(9)

schedule_hrtimeout_range - sleep until timeout SYNOPSIS
int __sched schedule_hrtimeout_range(ktime_t * expires, unsigned long delta, const enum hrtimer_mode mode); ARGUMENTS
expires timeout value (ktime_t) delta slack in expires timeout (ktime_t) mode timer mode, HRTIMER_MODE_ABS or HRTIMER_MODE_REL DESCRIPTION
Make the current task sleep until the given expiry time has elapsed. The routine will return immediately unless the current task state has been set (see set_current_state). The delta argument gives the kernel the freedom to schedule the actual wakeup to a time that is both power and performance friendly. The kernel give the normal best effort behavior for "expires+delta", but may decide to fire the timer earlier, but no earlier than expires. You can set the task state as follows - TASK_UNINTERRUPTIBLE - at least timeout time is guaranteed to pass before the routine returns. TASK_INTERRUPTIBLE - the routine may return early if a signal is delivered to the current task. The current task state is guaranteed to be TASK_RUNNING when this routine returns. Returns 0 when the timer has expired otherwise -EINTR COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 SCHEDULE_HRTIMEOUT_R(9)
Man Page

15 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

reply timer

Neo, can u please shorten the reply timer to like 1 min or so. It is prolly just me but i end up passing on replying to posts due to i hate waiting for my timer to reset w/ a 2.5 mins wait. (2 Replies)
Discussion started by: Optimus_P
2 Replies

2. Programming

About link list

I should use a pointer or a struct as the head of a linklist. I want use the linklist as the data structure for graph. Such as struct node { int vertex; struct node * next; }; typedef struct node NT; struct list{ int row; NT * neighbour; struct list * next; } typedef... (2 Replies)
Discussion started by: xli3
2 Replies

3. Programming

how to print struct in GDB

hi, i hav array of following struct which contains 50 elements. I want to print only first feild of the struct ie name field in GDB debuggure. struct node { char name ; int age; char sex; int location } SS ... (4 Replies)
Discussion started by: useless79
4 Replies

4. Programming

How to implement polling for a function using timer in C?

Hi, Can you please help me in implementing a timer based polling for function in C? ie. the function should be called in say 30secs(when 30secs has lapsed). Thanks (7 Replies)
Discussion started by: naan
7 Replies

5. Programming

Questions about timer in multi-threads environment

Hi I have questions about timer function in multi-threads environment. My application has multi-threads, in one thread, I set a timer, when the timer expires, the timer function will interrupt other thread and execute. I am not clear which thread will be interrupted by the timer function ?... (2 Replies)
Discussion started by: longskys
2 Replies

6. HP-UX

How to set an non-expiry in HP-Unix

Hi all, want to know how to reset the password in non-expiry in HP-unix....? please some one hwlp me...! :) (2 Replies)
Discussion started by: bullz26
2 Replies

7. Shell Programming and Scripting

expiry of a linux id?

Hi, Can anyone suggest, how or from where we can understand the expiry time of a linux id, whether login or ftp? My concern is like, i want to know when the ftpid configured on an automated system will expire, so that i can configure some notice or email mentioning that the particular id... (1 Reply)
Discussion started by: DILEEP410
1 Replies

8. Shell Programming and Scripting

password expiry notification

Hi, Could someone please let me know how to write script for passwd expiry notification on salaries boxes. Regards Dnyan (1 Reply)
Discussion started by: dnyan
1 Replies

9. Shell Programming and Scripting

Password expiry date check for hp servers

Hi All, Can anybody help me, to find the command to check for the password expiry date for the hp servers. Thanks, Deepak (3 Replies)
Discussion started by: dswain
3 Replies

10. Programming

structure pointer array as function parameters

if i create an array of pointers to a structure "struct node" as: struct node *r; and create "n" number of "linked lists" and assign it to the various struct pointers r using some function with a return type as structure pointer as: r=multiplty(.......) /*some parameters*/ is... (2 Replies)
Discussion started by: mscoder
2 Replies

11. Shell Programming and Scripting

Bash - countdown timer

Hello, I have another problem with my script - I would like to have a countdown timer visible on the screen, and at the same time, I want te be able to do something else. And when the time runs out, I need to know about that inside the script somehow and do some action. I guess that would require 2... (3 Replies)
Discussion started by: xqwzts
3 Replies

12. Shell Programming and Scripting

Password expiry report

Hi All, I want to write a script that will send the alert when linux server password expiry for user 'x' is less than 12 days. I have written the below script but this is not working for expiry date 04 july script;- P_EXPIRY_DATE=`chage -l msdp| grep 'Password expires' | awk ' {... (2 Replies)
Discussion started by: abhigrkist
2 Replies

13. UNIX for Advanced & Expert Users

The UNIX clock/timer interrupt

The book The Design of the Unix Operating System speaks of a clock or timer that is used in scheduling. The clock generates interrupts that update priority information for processes and preempt processes in a round-robin fashion. It's apparent that this "clock" is not the same thing as the CPU... (1 Reply)
Discussion started by: Ultrix
1 Replies

14. UNIX for Beginners Questions & Answers

Java expiry information

Hi, I have a requirement to check the expiry date of Java software installed in linux servers. We are using the below Java java version "1.8.0_51" Java(TM) SE Runtime Environment (build 1.8.0_51-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode) I am not sure... (3 Replies)
Discussion started by: nextStep
3 Replies

15. UNIX for Beginners Questions & Answers

Adder timer to 1 of these columns

I have 2 files that print on the same line at the same time. I wanted to add time.sleep() to 1 of the textfiles. I wanted to delay the time that 1 textfile prints with the other 1 in this script. I wanted to have the files to create new lines instead of printing the same combinations when they both... (5 Replies)
Discussion started by: bigvito19
5 Replies