No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
We have two ways 2 access files . Open and its friends and mmap system call . When to use mmap() and what are its advantages?
I would like to implement a text editor . In the design process i have some doubts . Take a text editor like a notepad . We we will able to move directly to any point in the editor which means that a random access is made possible . I …
Why is the constructor called from top to bottom rather than bottom to top ????
Hi frenz , I came across get_user_pages() function . I found that this function is used when the there is no need of kernel buffering (buffer cache ) so the data from the device is directly placed in the userspace . But still i dnt know when and how to …
I read that the initialisation of the vptr is done by the default constructor automatically . What happens when u provide implementation for the default constructor . Is the initialisation code added automatically ???
[CODE=c++] class A { int num; public: A() {} A(int _num) : num(_num) {} A operator + (const A & ob) { return (num+ ob.num); } }; int main() { A ob1(1); A ob2(2); A ob3(3); A ob4=ob1+ob2+ob3; } My doubt is in ob1+ob2+ob3 . First ob1+ob2 is evaluated and …
Hi Friend , Yes it is possible to use system call from the linux modules . But there is a limit on what system calls can be used . sys_open () can be used however sys_mknod can't be used . Check kallsyms in the proc filesystem to get the list …
The End.
abhi74k