Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7579421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:40:31+00:00 2026-05-30T17:40:31+00:00

I am going to write a Lexical that is going to be part of

  • 0

I am going to write a Lexical that is going to be part of a kernel module in which I will parse a file and return tokens. For that, I may need to use functions like fopen, getc,putc,fseek etc which obviously are user space functions. I have searched for alternatives to these functions in kernel space and I found functions like open, filp_open, sys_open etc which I guess would be OK for me. But what I want to know is whether functions like getc, putc, seek etc (which can be very handy in file operations), are available in kernel space?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:40:33+00:00Added an answer on May 30, 2026 at 5:40 pm

    Don’t.

    Reading files, and especially complex configuration files, is not something which should be done from the kernel.

    There’s a lot of information about why this is a bad idea. The KernelNewbies FAQ is a good start.

    Really, really don’t do this. I integrate a lot of vendor (kernel) code, and this is one of the mistakes which keeps coming up and biting us. Learn to do things the right way from the start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working with a Java application that is going to write a .dat file
Im going to write some android app, which will basically consists of two activities.
I have a school project in which we're going to write a financial engine
I'm going to write a function to play a mp3 file from an URL
I am going to write an application that uses QT4 (with C++ or python
I'm going to write a program that takes a URL and counts the occurrences
I've decided that I'm going to write an API for my music site. Something
I have a python practise project. I'm going to write a GUI program which
I'm going to need to integrate a Java application that I wrote with a
I'm going to write my own custom control that is very different from UIButton.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.