LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-15-2014, 06:43 AM   #1
ramzi.kahil
LQ Newbie
 
Registered: Apr 2014
Posts: 28

Rep: Reputation: 1
Are invariants on the kernel data structures documented?


I want to program a kind of a security module as an example, and I want later to prove that my code is enforcing the invariants on a specific data structure (e.g., those in /include/linux/list.h). But I'm not sure what the invariants are. So, are the invariants documented anywhere?
 
Old 04-16-2014, 03:23 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Code:
cd Documentation
find . -name '*.txt' -exec grep -H 'assert[^a-z]' \{} \;
nope
 
Old 04-16-2014, 03:31 PM   #3
ramzi.kahil
LQ Newbie
 
Registered: Apr 2014
Posts: 28

Original Poster
Rep: Reputation: 1
I don't get it. Just because the word 'assert' does not appear you are concluding that the invariants are not documented?
 
Old 04-16-2014, 04:02 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
How and where would you document them?
 
1 members found this post helpful.
Old 04-16-2014, 04:48 PM   #5
ramzi.kahil
LQ Newbie
 
Registered: Apr 2014
Posts: 28

Original Poster
Rep: Reputation: 1
Well, I'm quite certain that other word that 'assert' can be used. It is indeed a good point but, realying only on this, the conclusion that no invariants are documented is a bit far fetched in my opinion. Anyway thanks for the info, I appreciate it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Data Structures and Algorithms in the Linux Kernel jeremy Linux - News 0 11-24-2013 01:20 PM
Data Structures specific to a user in kernel linkaran Linux - Kernel 4 08-11-2012 11:59 PM
from kernel data structures ? sha_neb Linux - Kernel 1 06-08-2007 03:54 PM
from kernel data structures ? sha_neb Programming 1 06-07-2007 09:53 AM
kernel data structures vishalbutte Programming 8 01-05-2006 03:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration