<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>On Mar 10, 2014, at 10:25 PM, 김찬 <<a href="mailto:ckim@etri.re.kr">ckim@etri.re.kr</a>> wrote:<br><br></div><div><span></span></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>P {MARGIN-TOP: 0mm; MARGIN-BOTTOM: 0mm}</style>
<div style="FONT-FAMILY: 굴림; FONT-SIZE: 10pt" id="ezFormProc_div">
<div style="FONT-FAMILY: 굴림" id="msgbody">
<div>Hi,</div>
<div> </div>
<div>This should be a basic question.</div>
<div>Does the regisetr_chrdev function make the device file under /dev directory?</div>
<div>I am running linux on our embedded system and inside vcs_init, register_chrdev is called as below.</div>
<div> </div>
<div>int __init vcs_init(void)<br>
{<br>
unsigned int i;</div>
<div> if (register_chrdev(VCS_MAJOR, "vcs", &vcs_fops))<br>
panic("unable to get major %d for vcs device", VCS_MAJOR);<br>
</div>
<div> </div>
<div>I can see the function is returning ok but I don't see any vcs* file under /dev.</div>
<div>Does it only register the device on /sys or /proc directory and not under /dev?</div>
<div>Thanks in advance.</div>
<div> </div>
<div>Chan</div>
<div> </div>
</div>
</div>
</div></blockquote><div><br></div>You have to create a device file using 'mknod'<div><br></div><div>Ex: mknod -m 666 /dev/vcs c <major no> <minor no></div><div><br></div><div><br></div><div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Kernelnewbies mailing list</span><br><span><a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a></span><br><span><a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a></span><br></div></blockquote></div></body></html>