#
aed55708 |
| 22-Oct-2006 |
Robert Watson <rwatson@FreeBSD.org> |
Complete break-out of sys/sys/mac.h into sys/security/mac/mac_framework.h begun with a repo-copy of mac.h to mac_framework.h. sys/mac.h now contains the userspace and user<->kernel API and definitio
Complete break-out of sys/sys/mac.h into sys/security/mac/mac_framework.h begun with a repo-copy of mac.h to mac_framework.h. sys/mac.h now contains the userspace and user<->kernel API and definitions, with all in-kernel interfaces moved to mac_framework.h, which is now included across most of the kernel instead.
This change is the first step in a larger cleanup and sweep of MAC Framework interfaces in the kernel, and will not be MFC'd.
Obtained from: TrustedBSD Project Sponsored by: SPARTA
show more ...
|
#
94d67e0f |
| 02-Oct-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Move tz_minuteswest and tz_dsttime to subr_clock.c
|
#
f645b0b5 |
| 02-Oct-2006 |
Poul-Henning Kamp <phk@FreeBSD.org> |
First part of a little cleanup in the calendar/timezone/RTC handling.
Move relevant variables to <sys/clock.h> and fix #includes as necessary.
Use libkern's much more time- & spamce-efficient BCD r
First part of a little cleanup in the calendar/timezone/RTC handling.
Move relevant variables to <sys/clock.h> and fix #includes as necessary.
Use libkern's much more time- & spamce-efficient BCD routines.
show more ...
|
#
993182e5 |
| 15-Aug-2006 |
Alexander Leidinger <netchild@FreeBSD.org> |
- Change process_exec function handlers prototype to include struct image_params arg. - Change struct image_params to include struct sysentvec pointer and initialize it. - Change all consumers of
- Change process_exec function handlers prototype to include struct image_params arg. - Change struct image_params to include struct sysentvec pointer and initialize it. - Change all consumers of process_exit/process_exec eventhandlers to new prototypes (includes splitting up into distinct exec/exit functions). - Add eventhandler to userret.
Sponsored by: Google SoC 2006 Submitted by: rdivacky Parts suggested by: jhb (on hackers@)
show more ...
|
#
aff5bcb1 |
| 02-Aug-2006 |
David Xu <davidxu@FreeBSD.org> |
INT_MAX is defined in file sys/limits.h, include the file now.
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
61d3a4ef |
| 01-Mar-2006 |
David Xu <davidxu@FreeBSD.org> |
Let kernel POSIX timer code and mqueue code to use integer as a resource handle, the timer_t and mqd_t types will be a pointer which userland will define it.
|
#
3e70c6f0 |
| 09-Dec-2005 |
David Xu <davidxu@FreeBSD.org> |
Fix compiling warning on 64 bits system.
|
#
d26b1a1f |
| 09-Dec-2005 |
David Xu <davidxu@FreeBSD.org> |
Register itimers_event_hook as a kernel event handler, so I don't have to duplicate code to call it in exec() and exit1().
|
#
77e718f7 |
| 01-Dec-2005 |
David Xu <davidxu@FreeBSD.org> |
1. Set timer configuration values for sysconf(). 2. Set overrun limit to INT_MAX, report ERANGE error if overrun will be greater than INT_MAX.
|
#
5e758b95 |
| 27-Nov-2005 |
Robert Watson <rwatson@FreeBSD.org> |
Add several aliases for existing clockid_t names to indicate that the application wishes to request high precision time stamps be returned:
Alias Existing
CLOCK_REALTIME_P
Add several aliases for existing clockid_t names to indicate that the application wishes to request high precision time stamps be returned:
Alias Existing
CLOCK_REALTIME_PRECISE CLOCK_REALTIME CLOCK_MONOTONIC_PRECISE CLOCK_MONOTONIC CLOCK_UPTIME_PRECISE CLOCK_UPTIME
Add experimental low-precision clockid_t names corresponding to these clocks, but implemented using cached timestamps in kernel rather than a full time counter query. This offers a minimum update rate of 1/HZ, but in practice will often be more frequent due to the frequency of time stamping in the kernel:
New clockid_t name Approximates existing clockid_t
CLOCK_REALTIME_FAST CLOCK_REALTIME CLOCK_MONOTONIC_FAST CLOCK_MONOTONIC CLOCK_UPTIME_FAST CLOCK_UPTIME
Add one additional new clockid_t, CLOCK_SECOND, which returns the current second without performing a full time counter query or cache lookup overhead to make sure the cached timestamp is stable. This is intended to support very low granularity consumers, such as time(3).
The names, visibility, and implementation of the above are subject to change, and will not be MFC'd any time soon. The goal is to expose lower quality time measurement to applications willing to sacrifice accuracy in performance critical paths, such as when taking time stamps for the purpose of rescheduling select() and poll() timeouts. Future changes might include retrofitting the time counter infrastructure to allow the "fast" time query mechanisms to use a different time counter, rather than a cached time counter (i.e., TSC).
NOTE: With different underlying time mechanisms exposed, using different time query mechanisms in the same application may result in relative non-monoticity or the appearance of clock stalling for a single clockid_t, as a cached time stamp queried after a precision time stamp lookup may be "before" the time returned by the earlier live time counter query.
show more ...
|
#
5eefd889 |
| 18-Nov-2005 |
Andre Oppermann <andre@FreeBSD.org> |
Add CLOCK_UPTIME to clock_gettime(2) reporting the current uptime measured in SI seconds.
Sponsored by: TCP/IP Optimization Fundraise 2005
|
#
8f0371f1 |
| 04-Nov-2005 |
David Xu <davidxu@FreeBSD.org> |
Fix name compatible problem with POSIX standard. the sigval_ptr and sigval_int really should be sival_ptr and sival_int. Also sigev_notify_function accepts a union sigval value but not a pointer.
|
#
6d7b314b |
| 03-Nov-2005 |
David Xu <davidxu@FreeBSD.org> |
Cleanup some signal interfaces. Now the tdsignal function accepts both proc pointer and thread pointer, if thread pointer is NULL, tdsignal automatically finds a thread, otherwise it sends signal to
Cleanup some signal interfaces. Now the tdsignal function accepts both proc pointer and thread pointer, if thread pointer is NULL, tdsignal automatically finds a thread, otherwise it sends signal to given thread. Add utility function psignal_event to send a realtime sigevent to a process according to the delivery requirement specified in struct sigevent.
show more ...
|
Revision tags: release/6.0.0_cvs, release/6.0.0 |
|
#
56c06c4b |
| 30-Oct-2005 |
David Xu <davidxu@FreeBSD.org> |
Let itimer store itimerspec instead of itimerval, so I don't have to convert to or from timeval frequently.
Introduce function itimer_accept() to ack a timer signal in signal acceptance code, this a
Let itimer store itimerspec instead of itimerval, so I don't have to convert to or from timeval frequently.
Introduce function itimer_accept() to ack a timer signal in signal acceptance code, this allows us to return more fresh overrun counter than at signal generating time. while POSIX says: "the value returned by timer_getoverrun() shall apply to the most recent expiration signal delivery or acceptance for the timer,.." I prefer returning it at acceptance time.
Introduce SIGEV_THREAD_ID notification mode, it is used by thread libary to request kernel to deliver signal to a specified thread, and in turn, the thread library may use the mechanism to implement SIGEV_THREAD which is required by POSIX.
Timer signal is managed by timer code, so it can not fail even if signal queue is full filled by sigqueue syscall.
show more ...
|
#
fe80a390 |
| 24-Oct-2005 |
David Xu <davidxu@FreeBSD.org> |
Don't touch last overrun if signal was already on queue.
|
#
60354683 |
| 23-Oct-2005 |
David Xu <davidxu@FreeBSD.org> |
Make p_itimers as a pointer, so file sys/proc.h does not need to include sys/timers.h.
|
#
86857b36 |
| 23-Oct-2005 |
David Xu <davidxu@FreeBSD.org> |
Implement POSIX timers. Current only CLOCK_REALTIME and CLOCK_MONOTONIC clock are supported. I have plan to merge XSI timer ITIMER_REAL and other two CPU timers into the new code, current three slots
Implement POSIX timers. Current only CLOCK_REALTIME and CLOCK_MONOTONIC clock are supported. I have plan to merge XSI timer ITIMER_REAL and other two CPU timers into the new code, current three slots are available for the XSI timers. The SIGEV_THREAD notification type is not supported yet because our sigevent struct lacks of two member fields: sigev_notify_function sigev_notify_attributes I have found the sigevent is used in AIO, so I won't add the two members unless the AIO code is adjusted.
show more ...
|
#
f0b479cd |
| 15-Oct-2005 |
Paul Saab <ps@FreeBSD.org> |
Implement 32bit wrappers for clock_gettime, clock_settime, and clock_getres.
|
Revision tags: release/5.4.0_cvs, release/5.4.0 |
|
#
b88ec951 |
| 01-Apr-2005 |
John Baldwin <jhb@FreeBSD.org> |
Implement kern_adjtime(), kern_readv(), kern_sched_rr_get_interval(), kern_settimeofday(), and kern_writev() to allow for further stackgap reduction in the compat ABIs.
|
#
5e85ac17 |
| 07-Feb-2005 |
John Baldwin <jhb@FreeBSD.org> |
If the pointer to the new itimerval is NULL in kern_setitimer(), just read the old value via kern_getitimer().
|
#
c90110d6 |
| 07-Feb-2005 |
John Baldwin <jhb@FreeBSD.org> |
Various and sundry style fixes.
|
#
cfa0efe7 |
| 25-Jan-2005 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Split out kernel side of {get,set}itimer(2) into two parts: the first that pops data from the userland and pushes results back and the second which does actual processing. Use the latter to eliminate
Split out kernel side of {get,set}itimer(2) into two parts: the first that pops data from the userland and pushes results back and the second which does actual processing. Use the latter to eliminate stackgap in the linux wrappers of those syscalls.
MFC after: 2 weeks
show more ...
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
efa42cbc |
| 19-Jan-2005 |
Paul Saab <ps@FreeBSD.org> |
move kern_nanosleep to sys/syscallsubr.h
Requested by: jhb
|
#
7fdf2c85 |
| 19-Jan-2005 |
Paul Saab <ps@FreeBSD.org> |
- rename nanosleep1 to kern_nanosleep - Add a 32bit syscall entry for nanosleep
Reviewed by: peter Obtained from: Yahoo!
|
#
9454b2d8 |
| 07-Jan-2005 |
Warner Losh <imp@FreeBSD.org> |
/* -> /*- for copyright notices, minor format tweaks as necessary
|