tag | line | file | source code |
tv | 167 | kernel/time.c | static inline void do_gettimeofday(struct timeval *tv) |
tv | 171 | kernel/time.c | *tv = xtime; |
tv | 172 | kernel/time.c | tv->tv_usec += do_gettimeoffset(); |
tv | 173 | kernel/time.c | if (tv->tv_usec >= 1000000) { |
tv | 174 | kernel/time.c | tv->tv_usec -= 1000000; |
tv | 175 | kernel/time.c | tv->tv_sec++; |
tv | 180 | kernel/time.c | *tv = xtime; |
tv | 185 | kernel/time.c | asmlinkage int sys_gettimeofday(struct timeval *tv, struct timezone *tz) |
tv | 189 | kernel/time.c | if (tv) { |
tv | 191 | kernel/time.c | error = verify_area(VERIFY_WRITE, tv, sizeof *tv); |
tv | 195 | kernel/time.c | put_fs_long(ktv.tv_sec, (unsigned long *) &tv->tv_sec); |
tv | 196 | kernel/time.c | put_fs_long(ktv.tv_usec, (unsigned long *) &tv->tv_usec); |
tv | 240 | kernel/time.c | asmlinkage int sys_settimeofday(struct timeval *tv, struct timezone *tz) |
tv | 251 | kernel/time.c | if (!tv) |
tv | 255 | kernel/time.c | if (tv) { |
tv | 258 | kernel/time.c | sec = get_fs_long((unsigned long *)tv); |
tv | 259 | kernel/time.c | usec = get_fs_long(((unsigned long *)tv)+1); |