Re: Function Pointer Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 02 Apr 2015 06:54:42 -0400, Nicholas Krause said:

> I looked in to it and the kernel seems to be one of the few places where this
> is done along with in line functions.  Why do we need function pointers in the
> kernel, outside of device drivers is my real question and is there any way to
> do the code using them without function pointers at all, I am assuming no.

Geez Nick, you didn't look very hard at all, did you?

[/usr/src/linux-next] find include -type f | xargs egrep '^struct .*_op.*{$' | sort

There's 391 of them (at least in yesterday's linux-next tree).

You should *at least* know and understand 'struct file_operations',
'struct dentry_operations', 'struct inode_operations', and 'struct super_operations"
if you plan to have any realistic hope of understanding the VFS - which should
be important to you, as I seem to recall you were interested in btrfs2.

See include/linux/fs.h for the details.


Attachment: pgp03hkyRty4S.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux