EmbLogic's Blog

Author Archives: niket

linux Environment

i use /dev/tty for redirect the stdout for particular portion for the program but it redirect all the stdout statements…

Posted in Uncategorized | Leave a comment

nibble mode

hows inb and outb work internally? getting problem in handshaking through strobe pin in nibble mode. how can i do it?  

Posted in Parallel Port Driver | Leave a comment

char driver

at time of the writing in multiple quantum there is killed in kernel page and err reported is sleeping function called from invalid context at arch/x86/mm/fault.c what dose it mean? and kernel crash after 5 min.

Posted in Character Driver | Comments Off

char driver

there is kernel crash at the time of kmalloc and give error of unable to hander pegging request

Posted in Uncategorized | Leave a comment

char driver

scull_triming and maping of scull_write has been done

Posted in Character Driver | Comments Off

in scull

how can i free memory after reading data for item, by free system call or delete the linking between qsets. i use free system call it give me segmentation fault error

Posted in Data Structures with C | 2 Comments

register the driver acording to 2.4 kernal give error in rmmod and all hedar file and decleartion are include in heder24.h

#include”header24.h” int i,retvl; module_param(i,int,S_IRUGO); int init_function(void) { retvl=register_chrdev(0,”my_reg”,&fops); if(retvl<0) printk(KERN_ERR “error\n”); printk(KERN_INFO “retvl=%d\n”,retvl); printk(KERN_INFO “HELLO WORLD\n”); printk(KERN_INFO “process name=%s \t process id=%d”,current->comm,current->pid); printk(KERN_INFO “i=%d\n”,i); return 0; } void exit_function(void) { unregister_chrdev(retvl,”my_reg”); printk(KERN_INFO “BYE\n”); }

Posted in Uncategorized | 3 Comments