From: shiyu chou <shiyu2010310@gmail.com>
To: kernelnewbies@kernelnewbies.org
Subject: question about boot_params global variables
Date: Tue, 16 Aug 2022 17:55:33 +0800 [thread overview]
Message-ID: <CAL2O3Y=Qy2WGwX_5=fxaAN483tCtSDn4P73z-ZeDSo6FqMpqrA@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 406 bytes --]
Hello all:
In arch x86 directory I found two global variables with the same
name(master branch):
1.arch/x86/boot/main.c
near line 18: struct boot_params boot_params __attribute__((aligned(16)));
2.arch/x86/kernel/setup.c
near line 75: struct boot_params boot_params;
Is that wrong to define two global variables with the same name? And when
use extern to reference the variable,which one did it reference?
[-- Attachment #1.2: Type: text/html, Size: 505 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next reply other threads:[~2022-08-16 10:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-16 9:55 shiyu chou [this message]
2022-08-17 10:04 ` question about boot_params global variables Valentin Vidić
2022-11-14 16:22 ` jim.cromie
2022-11-14 18:41 ` Saad Masood
2022-11-20 17:46 ` jim.cromie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAL2O3Y=Qy2WGwX_5=fxaAN483tCtSDn4P73z-ZeDSo6FqMpqrA@mail.gmail.com' \
--to=shiyu2010310@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).