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

  • Home
  • SEARCH
  • 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 777539
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:37:15+00:00 2026-05-14T19:37:15+00:00

I do not know if this the correct forum to ask this question but

  • 0

I do not know if this the correct forum to ask this question but I am a fan of stackoverflow and so have decided to go ahead posting it here.

If I output the /proc//smaps, I find several segments which do not have any name associated with them and also with inode number as 0. As per the linux kernel Documentation, 0 indicates that no inode is associated with the memory region, as the case would be with BSS (uninitialized data).

I tried searching for BSS but could not get exactly what it is. The information that I got is that BSS is that segment of memory responsible for unititalised global and static variables.

My question is what else does memory region with inode number 0 contain?

I wrote a C program in which I dd the following:-
(i) Malloc 4 Mb for an array on integers
(ii) Cat /proc//smaps
(iii) Found an added memory segment with inode number “0” in the smaps.
(iv) Inittialised some part of this array to 5.

STILL found that this memory segment is attached with inode number 0 only. Another question is when does this memory segment get converted to heap?

  • 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-14T19:37:16+00:00Added an answer on May 14, 2026 at 7:37 pm

    The mappings with inode number 0 are anonymous mappings – essentially those that have been created with the MAP_ANONYMOUS flag to mmap().

    This just means that they aren’t associated with a disk file. The inode number isn’t going to change though; it’ll always stay as 0 for that mapping.

    Anonymous mappings don’t get converted to heap. In fact “[heap]” is just a convenience marker for the anonymous mapping that is set up by the kernel at exec time and altered by the brk() system call.

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

Sidebar

Related Questions

I know this is not a real programming question. But, it relates to programming
I know this specific question has been asked before , but I am not
I know this is not programming directly, but it's regarding a development workstation I'm
I know this isn't a unique issue but I've not had much luck finding
I know this will be a difficult question, so I am not necessarily looking
I know this has been discussed many times, but I am not sure I
I know this is a vague question, especially since I am not providing any
Google's not coming to my rescue, here, and I just know this is the
I know this site is written using ASP.Net MVC and I do not see
This just won't work. The problem is that I do not know enough to

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.