EmbLogic's Blog

Author Archives: Himanshi

SCULLPIPE

hello sir, I wanted to ask that how can we use Lables for calling a predefined kernel function from another function. For .eg.. ssize_t scull_write() { write: xyz; } ssize scull_read() { goto write; } this calling of the write … Continue reading

Posted in Character Driver | Leave a comment

vim /usr/src/linux-xyz/include/asm-generics/ioctl.h

#ifndef _IOC_NONE # define _IOC_NONE      0U #endif #ifndef _IOC_WRITE # define _IOC_WRITE     1U #endif #ifndef _IOC_READ # define _IOC_READ      2U #endif please explain these lines of code>>!!  

Posted in Character Driver, Device Drivers | Leave a comment

ioctl

#ifndef _IOC_NONE # define _IOC_NONE 0U #endif #ifndef _IOC_WRITE # define _IOC_WRITE 1U #endif #ifndef _IOC_READ # define _IOC_READ 2U #endif please explain these MACROS and their Scalar values used for determining the direction

Posted in Uncategorized | Tagged | Leave a comment

PROJECT-1

I have completed the following topics:: Fedora installation Kernel compilation Gcc installation Configure Raid all servers Created Usb media Dual Boot Debiyan installation  

Posted in Linux Internals and System Programming | 1 Comment

linked list prog and output

this is the program for connecting 7nodes…… #include int main(void) { struct node { int info; struct node *d; }; struct node d1,*n,*t; { int i; d1.d=(struct node*) malloc(sizeof(struct node)); printf(“\nmemory allocation for pointer p of d1\n”); printf(“\nd1.d=%d\n”,d1.d); n=(struct node*)malloc(sizeof(struct … Continue reading

Posted in Uncategorized | Tagged | Leave a comment