1: define a local device.
2: fetch minor no.
2.a: check for errors.
3: assign previously allocated scull_dev to a local scull_dev.
3.a: check for errors.
3.b: cleanup_module();(if minor no. is wrong)
4: check file open in write mode by && O_ACCMOD with flags.
4.a: truncate the file.
5: preserve the local device into scull_dev.
i am facing a problem in step 3b in while programming in 2.6 kernel in calling cleanup function defined in module_exit() macro, while declaring exit function as static….any1 has some clues???
The cleanup function should not be static for 2.4 kernel type. if cleanup is made static then __exit must also be added
Can anyone tell me that why there are 8 bits in 1 byte?
earlier scientists used 2, 4,8 or 16 bits to represent 1 character. I was called a byte and it was different for diffferent architectures.. Later IBM made 8 bit standard byte because 8 bits could represent 2 BCD digits and could cover whole set of 7 bit ascii.