-4
votes
0answers
22 views

command for copying files in linux to usb drive?

I want to copy files from linux system to the usb flash drive connected to it. I ma using labcar VMware with linux operating szstem in it. could some one tell me how to copy the files from linux ...
0
votes
0answers
436 views

Get current thread id in kernel based C code (Linux)

I have a module which is accessed for read/write operations to a proc file. I know I can get current process id using current->pid, but is there a way to get the current thread id that is accessing ...
1
vote
1answer
534 views

How can I get the number of threads running in a process from /proc/[pid]/stat in Linux?

I have the pid of the process. I would like to know the current number of thread running in the process. I know I can read /proc/pid/stat for this information, but I'm not sure how to specifically get ...
5
votes
1answer
214 views

Kernel hacking methodology - how to find out where to hack the linux kernel

I have a throw-away cheap laptop I'd like to twiddle around, a Thinkpad SL 500. What bothers me are two leds, the one for wireless connectivity, and the one for hibernation, which don't light up at ...
9
votes
4answers
813 views

Does linux have any measures to protect against fork bombs?

#include <unistd.h> int main(int argc, char* argv[]) { while(1) { fork(); } } I run this program on my linux, nothing outputs on the terminal, the OS seems go dead. Does linux have ...
2
votes
2answers
286 views

What does this macro mean in linux kernel code?

see i found one config file in which this are macro defined # # Input Device Drivers # CONFIG_INPUT_KEYBOARD=y # CONFIG_KEYBOARD_ADP5588 is not set CONFIG_KEYBOARD_ATKBD=y # CONFIG_KEYBOARD_QT2160 ...