EmbLogic's Blog

Project 5: Character Driver

Implemented

#function to allocate memory to quantums.
#function to allocate memory to array of qsets.
#write function

Posted in Uncategorized | Leave a comment

project 5: character driver status

succesfully implemented:
#cdev_init function
#cdev_add function
#initialised the value of sculldev  for 20 nods
#Open and release functions
#container_of()
#scull_trim function

Posted in Uncategorized | 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

Project 5: Character Driver Open and Release function

Implemented:

#Open and release functions

#container_of()

#accessed open and release functions using  app.c file

Posted in Uncategorized | Leave a comment

Project 5 : Character Driver

Implemented for 20 nods

#cdev_init function

#cdev_add function

#initialised the value of sculldev  for 20 nods

Posted in Uncategorized | Leave a comment

character driver

proper implementation of cdev_init and cdev_add for 25 nod done.

Posted in Character Driver | Leave a comment

Assignment of exec() system call’

int main()
{
int fd,wr;
char ch[]=”Emblogic”;
char *name;
name = malloc(sizeof(char)*233);
if(name==NULL)
{
perror(“Malloc”);
}
fd=open(“file.txt”,O_WRONLY);
printf(“File descripter =%d\n”,fd);
wr = write(fd,ch,7);
if(wr == -1)
{
perror(“write”);
}
printf(“wr =%d\n”,wr);
sprintf(name,”%d”,fd);
printf(“%s\n”,name);
execl(“fd1″,”fd1″,name,0);
printf(“Bye\n”);
}

Posted in Uncategorized | 3 Comments

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

Working Status

I did Block Device Driver and now, ‘m working on C.

Posted in Uncategorized | Leave a comment

character driver status……

successfully implemented the registration of the driver using register_chrdev, alloc_chrdev_region.and unregistration using unregister_chrdev ,unregister_chrdev_region ……..,

implemented passing of module_parameter to the module using module_param()……

issues faced: kmalloc not functioning properly……….

 

 

Posted in Uncategorized | Leave a comment

working on project 7 serial port device driver.
inthis i setup a communication between two computers serially by using serial port.

Posted in Uncategorized | Leave a comment

Project 3

working on ipc project…

Posted in Uncategorized | Leave a comment

what is difference between argc and argv
how to use it

Posted in Data Structures with C | 1 Comment

what is argc and argv used in main()???

by using sizeof i am getting char size of 1 but size of a char like ‘D’ is 4 when declaired under a char variable…why??

Posted in Data Structures with C | 3 Comments

project 3 status

i have completed the given assignment on process replacement.

Posted in Uncategorized | Leave a comment