Say I want to search a director for the beginning of the task_struct declaration such as "struct task_struct {". What would the grep command be to achieve this if I want to search the kernel/...
Type: Posts; User: NuNn
Say I want to search a director for the beginning of the task_struct declaration such as "struct task_struct {". What would the grep command be to achieve this if I want to search the kernel/...
What system call would I have to use to check if the input was an integer if I am creating a module that reads from the user and writes to a /proc file entry.
I am writing a kernel module and I am wondering what system call function would I use to compare if the user entered string is an int or not?
The output from the console is what I listed above.
mkdir: cannot create directory `/usr/src/linux-2.6.29/debian/linux-image-2.6.29hacker-central/lib/firmware': No space left on devic
I...
When I try to compile an additional kernel I am receiving the following
INSTALL sound/pci/snd-via82xx-modem.ko
INSTALL sound/pci/snd-via82xx.ko
INSTALL sound/pci/trident/snd-trident.ko...
I recently added a printk statement to my timer.c file in /usr/src/linux-source-2-6-27/ so that each time SYS_GETPID was called I would have this printed out to my console and to my /var/log/messages...
I am trying to find the kernel function which the system call getpid() calls when it is invoked. However, when I look at the system call table all I am able to locate is the number associated with...
I ran the "locate unistd.h" command but all I am able to find after running that is the function declarations. what should I run with "locate" to find the definitions file?
I am trying to modify the getpid() system call definition file for an assignment, however I am having trouble locating where this file is. Could someone be able to tell me where the location of the...
I am running a server which has a thread pool that will take in a client's request on a given socket and then process this request on the socket while the server waits for more connections. But to...
Yep, MK that is what the output is on the ls command. I am locking the server program itself to ensure there are no more than one copy of it running at a time but this shouldn't have any effect on...
How would I implement a timeout on a thread to prevent a socket from not providing any input
I am trying to write to a text file but I believe my permissions on the directory are incorrect and so are not allowing me to do so. My return value that write() returns is a number greater than 0...
Could one compare for me raw I/O (open(), read(), write(), close()) to stream I/O. Thanks!
MK I tried your solution but when I restarted my system ubuntu never starts while the process is the only thing on the screen. How would I get Ubuntu to start normally and still have the process...
Thank you MK/brewbuck that helps clear it up a bit for me. Another question is does it matter if I choose init.d or rc.d and if it is rc.d that I want I have a number of directories ranging from...
After reading on run-level scripts is it a run-level script that I want to run this as or is there another location where I want to put this server process? I may just be understanding you...
I have a server program which I would like to add to my system boot. I tried to add it to '/etc/init.d/' and quickly found that this was not what I wanted (Thank you for a command line interface,...
ch4: I have a server which I am running and I would like to ensure that there is only one copy of my server running at a time.
brewbuck: Thank you, I just did a bit of research on what you said...
I have created a process which I would like to make sure that it is the only copy of itself running at any given time. What would I need to do to ensure this?
I have a client/server program which I would like to read in a client's request and then create a thread for each request that goes through and processes each accordingly. But my issue is that when...
Why is it run I run the following thread code my mutex doesn't cause other incoming threads to block until the current one has finished?
void *runner( void *arg) {
int sleepTime =0;
int...
I have updated my code to what I now have
Okay, I have figured out that the pthread_join was causing the server to wait until one thread had finished. But now I am receiving erros when multiple threads are trying to connect. Shouldn't the...
I am trying to create multiple threads in a client/server program but I am only able to run one thread at a time. Here is a copy of what I have thus far and I always open to suggestions and/or...