multiple data compression and decompression project completed.But facing problems using fseek() and llseek().
1. assignment no. 2 completed (unable to understand Q. 14 and 15)
2. assignment no. 4 completed
3. working on assignment no. 3 (stacks and queues)
Done:- PID and PPID of currently executing process.
Done:- Length of comm[TASK_CIMM_LEN] = 16
Wants to add ability to load and remove kernel module from user space in user mode , to check whether application have permissions or not for load and remove kernel modules macro CAP_SYS_MODULE is used
(if(!capable(CAP_SYS_MODULE)) , if this is true application doesn’t have permissions ,how to provide these permissions to application ,
All of this has been done in IOCTL.
hi,
i am trying o implement completion. i have to simple applications one for read and other for write.
my code is as follows
struct sculldev{
………..
………..
struct completiom my_completion;
…….
…………
};
scullread(……..)
{declare vriables……struct sculldev *lsculldev;
wait_for_completion(lsculldev->my_completion);
………….
}
scull_write(………..)
{
declare vriables……struct sculldev *lsculldev;
……………………………………..
…………code……………………
…………code…………………..
complete(&lsculldev->my_completion);
return 0;
}
HOWEVER WHEN I RUN THE APPLICATION THE SYSTEM CRASHES.
the messages in var/log/messages is
BUG: sleeping function called from invalid context at arch/x86/mm fault.c
in_atomic(): 0, irqs_disabled:1, pid 2207
i would appreciate if any one could help
#include
int main()
{
int i,k;
for(k=1;k<=10;k++)
{
i=getchar();
putchaar(i);
return 0;
}
//my doubt is…Why loop is executing 5 times instead of 10…
1. assignment no. 1 completed
2. assignment no. 2(done upto quest no. 10)
Done :- Insertion and display of elements in linear link-list
Done :- Stack creation using array
i did programs based on make utility..
but still facing some problem in archiving the .o files into one library…:(
compression and decompression complete.
successfully implemented linked list concept.
Completed compression and decompression for 4 bit code length and done compression for 1 to 5 bits code length….
whole project completed for 4 byte
compression completed for bytes 1 to 8
Completely done following steps for 4 byte:
1) Master Array
2) Compression
3) Decompression