This site works best with JavaScript enabled
Sign In
Discussions
Activity
Sign In
Previous Results
An Introduction to Device Drivers
[root@localhost src]# wget www.kernel.org/pub/linux/kernel/5.14/linux-5.14.8.tar.bzURL transformed to HTTPS due to an HSTS policy--2022-04-30 21:33:38-- https://www.kernel.org/pub/linux/kernel/5.14/linux-5.14.8.tar.bzResolving www.kernel.org (www.k…
by
rakeshsingh59432
April 2022
005 Character Device Drivers Development
permalink
04.Installing Linux-Fedora
# make menuconfig** Unable to find the ncurses package.* Install ncurses (ncurses-devel or libncurses-dev* depending on your distribution).** You may also need to install pkg-config to find the* ncurses installed in a non-default location.*make[1]: …
by
spatlou
February 2022
000 Linux System Administration
permalink
06-07-08-Process-Management-Replacement
Here in this program we have used fork(),execl(),and wait() system
call all together , as soon as we call fork system call a child
process is created with ppid of the process its been created from and
pid of process next pid .
Case 1:
Now if…
by
swatiupendra1999
April 2021
003 Linux System Programming
permalink
Character Device Driver from Scratch
Observed the following error, after trying to compile kernel:
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Failed to generate BTF for vmlinux.
Try to Disable CONFIG_DEBUG_INFO_BTF
Solution that worked for me: 1. Disabled "Generat…
by
ritde1
March 2021
005 Character Device Drivers Development
permalink
Session 10.Debugging Tools For Memory Issues
==5779== Invalid read of size 1 //error message==5779== at 0x483AC94: __strlen_sse2 (vg_replace_strmem.c:463)==5779== by 0x401F1F: findLocation (in /root/Projects/Project_101.1/build)==5779== by 0x40235D: compression02 (in /root/Projects/P…
by
mohitvaishnav962
July 2020
303 Linux System Programming
permalink
Session.08.Introduction to Pointers and References
#include
int main(){ int *ptr = NULL, x = 3;
//it'll print address = 0 fprintf(stdout, "ptr = %d\n", ptr);
//it'll print ptr = 3 ptr = &x; fprintf(stdout, "ptr = %d\n",…
by
mohitvaishnav962
July 2020
001 C Programming, Data Structures
permalink
Binary Search
output:ani@ani-VirtualBox:~/share_data/project/P01_C_project/s06_array$ ls
arryPointer binarySearch.o creatArray.o displayArray.o exitFunc.o linearSearch.c main.c mainMenu.o Makefile
binarySearch.c creatArray.c displayArray.c …
by
niranjan
May 2020
001 C Programming, Data Structures
permalink
An Introduction to Device Drivers
Device Driver ArchitectureLinux Kernel:The Kernel is the core of the Linux system. The Linux Kernel controls the hardware as well as the software of the system, here control means…
by
ashishindore006
April 2020
005 Character Device Drivers Development
permalink
Copy-on-write
A local variable stores in stack segment of process context,
process context is sharable between parent to child process, it means when we initialize
a local variable with some value in parent process and after that we initialize
again that varia…
by
harsh.srivastava923
November 2019
003 Linux System Programming
permalink
Multiple Data Compression and Encryption using Iterative Technique
@page { margin: 0.79in }
p { margin-bottom: 0.1in; line-height: 120% }
We are doing 4
bit compression
00 0
01 1
10 1
11 0
//We have
masterarray:
0 = i
1 = n
2 = o
3 = v
//We have file to
compress: innovation driven
by int…
by
spatlou
November 2019
001 C Programming, Data Structures
permalink
Multiple Data Compression and Encryption using Iterative Technique
@page { margin: 0.79in }
pre.cjk { font-family: "DejaVu Sans Mono", monospace }
p { margin-bottom: 0.1in; line-height: 120% }
RCS file: compressionStats.c,v
Working file: compressionStats.c
head: 1.1
branch:
locks: strict…
by
spatlou
September 2019
001 C Programming, Data Structures
permalink
Multiple Data Compression and Encryption using Iterative Technique, 120
RCS file: findLoc.c,vWorking file: findLoc.chead: 1.1branch:locks: strict root: 1.1access list:symbolic names:keyword substitution: kvtotal revisions: 1; selected revisions: 1description:It receive a character and ma. find the character location fro…
by
taruna.chaudhary19
December 2018
001 C Programming, Data Structures
permalink
Multiple Data Compression and Encryption using Iterative Technique, 120
RCS file: compress4.c,vWorking file: compress4.chead: 1.2branch:locks: strict root: 1.2access list:symbolic names:keyword substitution: kvtotal revisions: 2; selected revisions: 2description:This function will provide compression when code length wi…
by
taruna.chaudhary19
December 2018
001 C Programming, Data Structures
permalink
Project.Code.002.012: Library Inventry Management System
RCS file: book.h,vWorking file: book.hhead: 1.1branch:locks: strict root: 1.1access list:symbolic names:keyword substitution: kvtotal revisions: 1; selected revisions: 1description:This is the header file of book class which contains cons…
by
dgoel735
August 2018
002 OOPs using C++ with Eclipse on Linux
permalink
Project.Code.002.012: Library Inventry Management System
Data Specifications:
The items in the library inventory (books, periodicals, and DVD's) are
characterized as follows:
Book
- Author(s) (Maximum length = 128 characters)
- Publication date (Maximum length = 11 characters,fo…
by
spatlou
August 2018
002 OOPs using C++ with Eclipse on Linux
permalink
Carecter Device Driver
This bug means --> trying to dereference the NULL location.At some point in your code , there is an attempt made to access the contents of NULL pointer.
for eg.struct Qset *sqset=NULL;if we will do sqset->next ,then kernel will throw the erro…
by
kartik.gupta
February 2018
Query
permalink
Pointer to an array and Array to pointer
Pointer to array: lets say *ptr, which is pointing to a memory location which holds variable of, let's say integer datatypes, so this is a pointer to an array. and can be allocated by simple malloc statement.
Array of pointers : it is an arr…
by
pranshugupta195
December 2017
001 C Programming, Data Structures
permalink
B97 : C, Pointers and Data Structures
StacksCan access or perform data operations at one end only. It follows LIFO mechanism.They can be of fixed size or dynamic size according to the user need.Can be implemented by means of arrays, structures, pointers and linked list.Basic operations …
by
saurabh.hmr009
September 2017
Pravjot Sir Classes
permalink
Introduction to C programming
Difference between arr+1 and &arr+1Normally the size of an array can be calculated as :int i=sizeof(arr)/sizeof(arr[i]); //where i can be any index of the array.There is another way by which we can calculate the size of an array , lets …
by
saurabh.hmr009
September 2017
001 C Programming, Data Structures
permalink
B97 : C, Pointers and Data Structures
Core Dump (Segmentation fault) in C/C++
Core Dump/Segmentation fault is a specific kind of error caused by accessing memory that “does not belong to you.”When a piece of code tries to do write operation in a read only location in memory or freed …
by
sankalpnegi2310
August 2017
Pravjot Sir Classes
permalink
Powered by
Vanilla
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership