Search Results

Search: Posts Made By: aaronwong
7,960
Posted By aaronwong
wake up user space thread from kernel space ISR
Hello, I'm searching for a proper way to let the kernel space ISR(implemented in a kernel module) wake up a user space thread on a hardware interrupt.

Except for sending a real-time signal, is it...
Forum: Programming 01-07-2009
11,527
Posted By aaronwong
Thanks to you all for your comments! So it is...
Thanks to you all for your comments!
So it is believed that:
(1) there is no actual functional difference between the two methods;
(2) it is needed to pass a pointer-to-pointer to a function only...
Forum: Programming 01-06-2009
11,527
Posted By aaronwong
I just want to know the advantages and...
I just want to know the advantages and disadvantages of those two methods by this simple example... actually, in practice, especially in memory management application for a special or embedded...
Forum: Programming 01-06-2009
4,777
Posted By aaronwong
It's because before calling wait() to wait child...
It's because before calling wait() to wait child exits, the child won't actually disappear in the system, i.e. if a child exits, but the parent does not immediately call wait() or waitpid() to handle...
Forum: Programming 01-06-2009
11,527
Posted By aaronwong
pass a pointer-to-pointer, or return a pointer?
If one wants to get a start address of a array or a string or a block of memory via a function, there are at least two methods to achieve it:
(1) one is to pass a pointer-to-pointer parameter, like:...
Forum: Programming 09-23-2008
6,636
Posted By aaronwong
Just in case that ntpd exits for some unexpected...
Just in case that ntpd exits for some unexpected reason or error operations.
Forum: Programming 09-23-2008
6,636
Posted By aaronwong
yes, there is really a pratical problem I want to...
yes, there is really a pratical problem I want to fix...I'm sorry for my poor English that I did not express myself clearly with the word "illegal"...:)

what I meant is that in our system or...
Forum: Programming 09-23-2008
6,636
Posted By aaronwong
Thanks for your reasonable advice ... I...
Thanks for your reasonable advice ...

I probably did not state clearly about the case ... well, for the example ABCD case, it's simple because there are only two processes that could kill the...
Forum: Programming 09-23-2008
6,636
Posted By aaronwong
currently I can find two ways to do that, but not...
currently I can find two ways to do that, but not so neatly:

1) let C or D send a signal to inform A before it kills B;

2) let C or D write a flag to a file before it kills B, A checks this...
Forum: Programming 09-23-2008
6,636
Posted By aaronwong
SIGCHLD trace problem
Hello,

I'd like to know whether it is possible to let the parent know who kills its child process. The case is likely as below:

if there are four processes, we call them A, B, C and D. B is the...
Forum: Programming 09-09-2008
9,042
Posted By aaronwong
To era: yes, I really neglected this fact that...
To era:
yes, I really neglected this fact that only the owner or root has permission to signal a process.. Thank you for reminding me of it. And, in our implementation, we just check whether the pid...
Forum: Programming 09-08-2008
9,042
Posted By aaronwong
How to block or ignore signals from certain processes?
We know that a process can block certain signals by call sigprocmask(), but sometimes we may want to block signals from certain processes for safety concerning.

For example, a system may have a...
Forum: IP Networking 08-21-2008
14,164
Posted By aaronwong
about NTP reconfiguration..
Most services can re-load/re-read their configuration file through the command "service xxxx reload", which is usually implemented by "kill -HUP service_pid" .

for NTPD service, "service ntpd...
Forum: Programming 08-07-2008
5,086
Posted By aaronwong
Thanks a lot, era ! the option "-D...
Thanks a lot, era !

the option "-D NO_DETACH" can meet our requirements, and works fine~

more information can refer to:

Page 10 - Getting Started with Apache...
Forum: Programming 08-07-2008
5,086
Posted By aaronwong
Yes, it is Apache httpd. Using "-D FOREGROUND"...
Yes, it is Apache httpd.
Using "-D FOREGROUND" option is to run httpd as a child process of the process manager in our system, so that it can be monitored by the process manager. If leave out this...
Forum: Programming 08-07-2008
5,086
Posted By aaronwong
the parent receive SIGTERM from its child (httpd) ?
the parent is a process manager in our design, and httpd service is one of its child processes, which is started in foreground mode (with "-D FOREGROUND" options) according to our requirements.
...
Showing results 1 to 16 of 16

 
All times are GMT -4. The time now is 07:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy