Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 19:30
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
kernel syscalls - How does it work?
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4379

PostPosted: Thu 17 Mar 2011, 11:16    Post_subject:  kernel syscalls - How does it work?  

Lets say I have a 2.6.38 kernel that is compiled with xz support. Is there a way to use syscalls to the kernel (in a C program) to decompress an xz file without having to use the userland tools?
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
amigo

Joined: 02 Apr 2007
Posts: 2278

PostPosted: Thu 17 Mar 2011, 15:23    Post_subject:  

That's the transparent decompression mechanism as used by squashfs, cramfs, cloop, zisofs and now also ext4. They all depend on the kernel being able to do on-the-fly decompression of streams. And they each depend on a different program to create those filesystesms/images. From a regular C program, you'd want to use glibc calls along with small stream decompressor code. The in-kernel stuff is only useful at the filesystem level.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0474s ][ Queries: 12 (0.0145s) ][ GZIP on ]