Implemented
#function to allocate memory to quantums.
#function to allocate memory to array of qsets.
#write function
Implemented
#function to allocate memory to quantums.
#function to allocate memory to array of qsets.
#write function
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
#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>>!!
Implemented:
#Open and release functions
#container_of()
#accessed open and release functions using app.c file
Implemented for 20 nods
#cdev_init function
#cdev_add function
#initialised the value of sculldev for 20 nods
proper implementation of cdev_init and cdev_add for 25 nod done.
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”);
}
#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
I did Block Device Driver and now, ‘m working on C.
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……….
working on project 7 serial port device driver.
inthis i setup a communication between two computers serially by using serial port.
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??
i have completed the given assignment on process replacement.