Search:

Type: Posts; User: NuNn

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Help with grep

    by NuNn
    Replies
    1
    Views
    1,433

    Help with grep

    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/...
  2. Replies
    1
    Views
    2,432

    Check for integer in kernel module

    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.
  3. Replies
    10
    Views
    2,897

    Function To Test If there string is an int

    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?
  4. Replies
    3
    Views
    4,186

    The output from the console is what I listed...

    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...
  5. Replies
    3
    Views
    4,186

    Out of space when compiling kernel

    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...
  6. Replies
    1
    Views
    1,500

    Kernel Hacking Issue

    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...
  7. Thread: System Call Table

    by NuNn
    Replies
    3
    Views
    1,908

    System Call Table

    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...
  8. Replies
    4
    Views
    1,262

    I ran the "locate unistd.h" command but all I am...

    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?
  9. Replies
    4
    Views
    1,262

    location of header file definitions

    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...
  10. Replies
    3
    Views
    3,766

    I am running a server which has a thread pool...

    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...
  11. Replies
    2
    Views
    1,196

    Yep, MK that is what the output is on the ls...

    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...
  12. Replies
    3
    Views
    3,766

    Using a timeout on a thread

    How would I implement a timeout on a thread to prevent a socket from not providing any input
  13. Replies
    2
    Views
    1,196

    Trouble Writing To File

    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...
  14. Replies
    1
    Views
    2,695

    Raw I/O vs. Stream I/O

    Could one compare for me raw I/O (open(), read(), write(), close()) to stream I/O. Thanks!
  15. Replies
    9
    Views
    1,871

    MK I tried your solution but when I restarted my...

    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...
  16. Replies
    9
    Views
    1,871

    Thank you MK/brewbuck that helps clear it up a...

    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...
  17. Replies
    9
    Views
    1,871

    After reading on run-level scripts is it a...

    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...
  18. Replies
    9
    Views
    1,871

    Add process to be run at boot

    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,...
  19. ch4: I have a server which I am running and I...

    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...
  20. How would i ensure only one copy of a process is running at a time

    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?
  21. Replies
    2
    Views
    1,480

    I have a client/server program which I would like...

    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...
  22. Replies
    2
    Views
    1,480

    Mutexes and Blocking

    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...
  23. Thread: Multiple Threads

    by NuNn
    Replies
    3
    Views
    3,419

    I have updated my code to what I now have

    I have updated my code to what I now have
  24. Thread: Multiple Threads

    by NuNn
    Replies
    3
    Views
    3,419

    Okay, I have figured out that the pthread_join...

    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...
  25. Thread: Multiple Threads

    by NuNn
    Replies
    3
    Views
    3,419

    Multiple Threads

    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...
Results 1 to 25 of 97
Page 1 of 4 1 2 3 4